passing variables to a tlp.php file

View: New views
2 Messages — Rating Filter:   Alert me  

passing variables to a tlp.php file

by Matt Funk-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
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@...
http://lists.drupal.org/mailman/listinfo/themes

Re: passing variables to a tlp.php file

by Israel Shmueli :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...>
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@...
http://lists.drupal.org/mailman/listinfo/themes



_______________________________________________
themes mailing list
themes@...
http://lists.drupal.org/mailman/listinfo/themes