string smarty_function_pnmodfunc(
array $params, object &$smarty)
|
|
Smarty function to to execute a module function
This function calls a specific module function. It returns whatever the return value of the resultant function is if it succeeds. Note that in contrast to the API function pnModFunc you need not to load the module with pnModLoad.
Available parameters:
- modname: The well-known name of a module to execute a function from (required)
- type: The type of function to execute; currently one of 'user' or 'admin' (default is 'user')
- func: The name of the module function to execute (default is 'main')
- assign: If set, the results are assigned to the corresponding variable instead of printed out
- all remaining parameters are passed to the module function
Example <!--[pnmodfunc modname="News" type="user" func="display"]-->
Tags:
Parameters
| array |
$params |
All attributes passed to this function from the template |
| object |
&$smarty |
Reference to the Smarty object |