On phptemplate I know I can just call a module php function, but I don't know how this can be done for the others.

Vince

Comments

tclineks’s picture

With the Smarty Theme Engine you either write a function in the smartytemplate.php file within a theme directory and use register_functions to make it directly available or wrap your code in a {php} block.

See my recent post at http://drupal.org/node/34375#comment-72181 for a simple usage example (though more advaned than what you're asking about here).