The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
32 views

How to rewrite the value of an array element in page.tpl.php

I'm totally new to PHP programming and modifying the values of Drupal output with php customisations, so sorry if this question seems dumb. In Drupal 6 I need to rewrite the value of the array ...
-1
votes
2answers
30 views

Strict warning: Only variables should be passed by reference [closed]

I am getting this error on this line in my code. I'm guessing I need to break this line down a bit. Any comments would be great. $promobox_id = reset(array_keys($result['fieldable_panels_pane']));
0
votes
1answer
48 views

Specify which theme to use when rendering a page with drupal_render_page()

I'm looking to send out a node as an HTML email. I have the code working except for one part. I'm using drupal_render_page() to render the page's content so it's ready for an HTML email. I thought ...
0
votes
1answer
33 views

Can't render taxonomy term from block array

I am rendering variables from a block array, but for some reason when I render a taxonomy term, I get the white screen of death. after using views_get_view() to return an array, I can render anything ...
0
votes
1answer
23 views

How can I insert conditional logic into a render array?

Given the following render array, I'd like to insert some logic so that that $number of rows are created, but I can't just insert a for loop in the middle of defining my render array, I don't think. ...
0
votes
0answers
13 views

render array caching per node

I have a few render arrays inside hook_node_view which I'd like to cache. I'm doing something similar to the below: $my_item = array( '#theme' => 'item_list', '#items' => array(), ...