First at all, I know that this isn't the correct way to do this in D7, but I need to do in this way.
I've included a file in node.tpl.php:
include DRUPAL_ROOT . '/sites/all/themes/mytheme/inc/node_functions.php';
In this included file I have a function which, afterwards I want to call from a node's content-body.
Currently, if I call the function from a node content, I get a WSOD. I also checked if within a node-content the function exists, with a PHP function:
but it returns FALSE, so the function no exists in this 'scope'.
In summary, I want a collection of helpful functions included/attached to a node, but I don't want to write the include/require statement everytime I'm creating a node. I only want to simple 'call' those functions. So, how can I do it?
Thanks in advance.