Zikula_Template_Plugins
[ class tree: Zikula_Template_Plugins ] [ index: Zikula_Template_Plugins ] [ all elements ]

Procedural File: function.pnmodcallhooks.php

Source Location: /system/pnRender/plugins/function.pnmodcallhooks.php



Page Details:

Zikula Application Framework



Tags:

version:  $Id: function.pnmodcallhooks.php 24342 2008-06-06 12:03:14Z markwest $
copyright:  (c) 2004, Zikula Development Team
link:  http://www.zikula.org
filesource:  Source Code for this file
license:  GNU/GPL








smarty_function_pnmodcallhooks [line 39]

string smarty_function_pnmodcallhooks( array $params, object &$smarty)

Smarty function call hooks

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 pnmodcallhooks you need not to load the module with pnModLoad.

Available parameters:

  • 'hookobject' the object the hook is called for - either 'item' or 'category'
  • 'hookaction' the action the hook is called for - one of 'create', 'delete', 'transform', or 'display'
  • 'hookid' the id of the object the hook is called for (module-specific)
  • 'assign' If set, the results are assigned to the corresponding variable instead of printed out
  • all remaining parameters are passed to the pnModCallHooks API via the extrainfo array
Example <!--[pnmodcallhooks hookobject="item" hookaction="modify" hookid=$tid $modname="Example" $objectid=$tid]-->




Tags:

return:  the results of the module function
author:  Mark West
see:  function.pnmodcallhooks.php::smarty_function_pnmodcallhooks()
since:  26/04/2004


Parameters

array   $params   All attributes passed to this function from the template
object   &$smarty   Reference to the Smarty object
[ Top ]



Documentation generated on Fri, 18 Jul 2008 21:46:06 +0200 by phpDocumentor 1.4.1