jrCore_is_mobile_device() in module listener
Jamroom Developers
That location is not smarty.
You'd be better to have 2 functions.
in php
function myModule_some_function(){
do stuff
}
and the smarty one
function smarty_function_myModule_do_something($params, $smarty)
{
// call the other php function here
myModule_some_function();
}