[themes] passing variables to a tlp.php file

Israel Shmueli bpottery at gmail.com
Thu Oct 29 10:57:54 UTC 2009


Hi Matt,

I believe Nick Lewis answered your question in this fabulous post:
http://www.nicklewis.org/drupal-hackers-cookbook/theming/hook_theme-and-template-files

Israel

2009/10/28 Matt Funk <matze999 at gmx.net>

> Hi,
>
>
> this is probably a basic question for most, but i am stuck on this.
>
>
> I have a custom module enabled which has a function:
> theme_mymod_myfcn($myarg) {
> ...
> }
>
>
> I am trying to override this fcn via the file:
> mymod_myfcn.tpl.php
>
>
> However, whenever i try to print $myarg in the tpl.php file it appears to
> be empty. Why?
>
>
> Is there a way to access the $myarg variable in the tpl.php file.
>
>
> thanks
> matt
>
> _______________________________________________
> themes mailing list
> themes at drupal.org
> http://lists.drupal.org/mailman/listinfo/themes
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/themes/attachments/20091029/6e9372f4/attachment.html 


More information about the themes mailing list