By detot on
I have written a custom function in template.php named _something_cool(); and i have a a view and a module that calls on it. Works fine for the view but when i use the same code in the module it says the function doesn't exist. how should i solve this so it works everywhere? though the template.php was one of the first thing to load.
Comments
Have a look at the comments
Have a look at the comments in this thread regarding calling functions from a module: http://drupal.org/node/217573. Possibly better not to code in template.php if you can create a simple module to hold your functions.