By chrism2671 on
A simple question:
If you've got a function that you want to be able to call in any node where you are using the "PHP code" input format (rather than define it in each node), where is the best place to put it?
Cheers,
Chris.
Comments
template.php or in a module
template.php or in a module
This didn't work for me
I dont' know if I am doing something wrong...(i obviously am, i suppose) but I can't get this to work. I define a function in template.php and then try and call it from node content but i get the error "Fatal error: Call to undefined function retrievePictureURL() in..."
Any help or pointers would be great!
Thanks