bool smarty_function_pnmodishooked(
array $params, object &$smarty)
|
|
Smarty function to check for the availability of a module
This function calls pnModIsHooked to determine if two Zikula modules are hooked together. True is returned if the modules are hooked, false otherwise. The result can also be assigned to a template variable.
Available parameters:
- tmodname: The well-known name of the hook module
- smodname: The well-known name of the calling module
- assign: The name of a variable to which the results are assigned
Examples <!--[pnmodishooked tmodname="Ratings" smodname="News"]-->
<!--[pnmodishooked tmodname="bar" smodname="foo" assign=barishookedtofoo]--> <!--[if $barishookedtofoo]-->.....<!--[/if]-->
Tags:
Parameters
| array |
$params |
All attributes passed to this function from the template |
| object |
&$smarty |
Reference to the Smarty object |