[themes] drupal_render() problem
Matt Funk
matze999 at gmx.net
Tue Oct 9 19:00:40 UTC 2007
Hi,
i am somewhat new to drupal and so this is probably a trivial problem. I am
playing around with theming (i.e. trying to learn how to).
Anyway, on my site i have the loggintoboggan module enabled and i would like
to change the appearance of the login block. Currently the block simply
displays the login/register link. I did not want to touch the module so i
thought i'd override the function. This is what i did:
- i looked at loggintoboggan.module and found the 'user_login_block' case
- in my template.php i added:
function phptemplate_user_login_block($form) {
return _phptemplate_callback('user_login_block', array('form' => $form));
}
- i created user_login_block.tpl.php which contains:
<h1> SOMETHING </h1>
<?php
print "<pre>"; print_r(array_values($form)); print"</pre>";
print_r(drupal_render($form));
?>
The 'SOMETHING' is displayed properly as well as the printing of the
array_values. However, the call to drupal_render(...) does not seem to do
ANYTHING.
What am i doing wrong? I am using drupal 5.0.
thanks
mat
More information about the themes
mailing list