Problems rendering render array that's a child of another render array.
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 moreDrupal 6: drupal_render gives "blank" results
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']);
}Dynamic block alter/creation with custom field
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
