


Printing views exposed sort criteria separately to exposed filters
Exposed filters are either: – Printed in views-view.tpl.php using the $exposed variable. – Printed in a block, probably using the same variable. This variable ($exposed) contains the exposed sort criteria and filters. I would like to find a way to print... read more
How to use curly braces in schema default value?
I have a long varchar field that I’m using to save serialised data with drupal_write_record. I’d like to set the default value of the column to “a:0:{}” (which is serialize(array())). However, when Drupal runs database updates, they are run... read more
How to format user profile content to be printed on a printer?
I’m building a recruiting website using the eRecruiter profile distribution which uses Profile2 and was wondering if there is defined solution to creating a formatted page specifically for printing in D7 so the resumes can easily be printed in a nice... read more
Dynamic menu item based on Views argument
Is it possible to have a dynamic title on the menu item based on the argument that Views is receiving? I’m using the title on the menu item on the breadcrumb and my breadcrumb changes based on the argument. read more
Field in Custom Content Type Stripping out <img> tags
Drupal6: I have a custom content type, with a custom field, set to textarea. The content type’s instance filter is set to Full HTML. When I add an image tag to the custom field, the image renders in the WYSIWIG in edit mode. When I save the node, the tag... read more
Get all users with specific roles using EntityFieldQuery
I thought this was an easy task, yet there does not seem to be a Drupal-method for this. I came as far as knowing I have to use EntityFieldQuery for this – because the API said conditions for user_load_multiple() are deprecated. So I tried this: $query = new... read more
Merging output of Print.module’s printpdf with existing PDFs
Recently, I created an output template for the Print module, such that it dynamically generates a measurement sheet when a certain content type is parsed by its PDF functionality (using dompdf in this case). Everything works great, but the client’s requested... read more
How do I get the menu ID based on the menu title?
I am looking for a function to call like in the following snippet: get_menu_id(“my menu title”); Do you have any tips? read more
Problem with swfobject_api or jwplayer module
I have a problem with swfobject_api or jwplayer module. When I use this code in node.tpl.php everything is fine. $config=’sample’; $flashVars=array( ‘file’ => ‘path to flv’ ); print... read more