render array

Events happening in the community are now at Drupal community events on www.drupal.org.

Problems rendering render array that's a child of another render array.

Posted by RobW on July 20, 2012 at 6:58pm

Right now I'm re-writing the theme implementation for the Field Collection module. Totally stuck on rendering a very simple render array as a child of the field collection field -- it attaches fine and renders everywhere else I stick it, no problem. But it won't render there.

I have a suspicion it has something to do with theme_field, which the parent render array is rendered by. Tested my array as a child in an array rendered by theme_entity, and that worked fine.

Patch and more info at http://drupal.org/node/1157794#comment-6257474. Any ideas?

Read more

Drupal 6: drupal_render gives "blank" results

Posted by jessSchn on April 24, 2012 at 1:19pm

Hi,

I'm trying to add an image to the login page of my drupal 6 site. I've gone into the template.php file and added the following lines of code:

function helpsys_theme(&$existing, $type, $theme, $path) {
$hooks = zen_theme($existing, $type, $theme, $path);

$hooks['user_login'] = array(
'template' => 'user-login',
'arguments' => array('form' => NULL)
);

return $hooks;
}

function helpsys_preprocess_user_login(&$variables) {
$variables['rendered'] = drupal_render($variables['form']);
}
Read more

Dynamic block alter/creation with custom field

Posted by jcastelli on May 31, 2011 at 2:41pm

Hello all,

Still relatively new to Drupal, coming from WordPress. My objective is to allow my content editors to edit a "See Also" field on my custom content type, "Product," and have it appear in a "See Also" block in the sidebar region.

Read more
Subscribe with RSS Syndicate content

AltStyle によって変換されたページ (->オリジナル) /