


Custom template suggestion
I have this preprocess function: function drisco_preprocess_page(&$vars) { $node = $vars[‘node’]; $vars[‘theme_hook_suggestions’][] = ‘page__node__’ . clean_class($node->title);... read more
db_fetch_object returning null
This is the line: $row = db_fetch_object($result); While $result is valid but $row is getting a null value which I’ve checked with is_null. As per this function’s @return value, it can only return FALSE in failure. Also mysql_db_object states the same.... read more
Which parameters should I pass to form_set_value()?
I am trying to update a value during the validate phase of a node form: When the custom validation error is fired, I empty one of the fields. I am trying to use the following code. function eventcheck_node_validate($node, $form, &$form_state) { if ($node->type... read more
Loading a View Through Ajax – Slideshow not showing
I have a view in node-view mode that has another view (a view slideshow) embedded into that view. I am using jquery and setTimeout to slideDown the hidden div that contains the view a few seconds after the page loads. The problem that I am running into is when the div... read more
Create the pdf version of a node programatically (and attaching that pdf version to that node)
I have installed the print module. Every time I create a node of type X a print version can be generated each time I click the print link. The thing is that I need that pdf to be generated programatically, and not by hand every time I click on the link. I need (I´ve... read more
How do I separate the "Product" select list & "Add to cart" submit form in a node product display?
I have a node product display which references 2 different products. When I use the code below, it prints out both the “product select” form + the “add to cart” submit form. How do I print them out separately? <?php print... read more
Content type disappears in content list
I created a taxonomy with the same name as a content type. Now the list shows with no content type on the nodes with that type. I have since renamed the taxonomy, but there is still an issue. When trying to edit the node from the admin menu I get the following error:... read more
Date Repeat: Display only the first and last instances of a series?
I have been going crazy trying to find a way to display only the first and last dates of a series using Date Repeat, either in a view or the node itself, of repeating events. For example, there is a course that starts on January 16, and repeats every Monday until... read more
What is the best way to theme the first row in the view differently?
I have a view with the first row of it being designed differently from the rest. What is the best way to theme the first row. Should I attach one view (First Row view) with a second view ? If so, how? Or should I theme using the template files and if so How can I know... read more