[themes] drupal_render() problem
DragonWize
dragonwize at gmail.com
Tue Oct 9 22:22:01 UTC 2007
Why do you have print_r() around your drupal render? print_r is to
pretty print things like objects and arrays.
Alan
Matt Funk wrote:
> 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
> _______________________________________________
> themes mailing list
> themes at drupal.org
> http://lists.drupal.org/mailman/listinfo/themes
>
>
More information about the themes
mailing list