Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites
View Statistics - Next Notice - Previous NoticeDirectory filter : [ all ] / postnuke_official / html / includes [ view in CVS ]
Date | Directory [filter] | File(s) [view] | Author [filter] |
10 Aug 2002 17:40:39 | postnuke_official/html/includes | pnMod.php,1.76,1.77 | Mike |
allow override of current module for CallHooks |
Update of /home/cvsroot/postnuke_official/html/includes In directory ns7.hostnuke.net:/tmp/cvs-serv1193 Modified Files: pnMod.php Log Message: allow override of current module for CallHooks Index: pnMod.php =================================================================== RCS file: /home/cvsroot/postnuke_official/html/includes/pnMod.php,v retrieving revision 1.76 retrieving revision 1.77 diff -C2 -d -r1.76 -r1.77 *** pnMod.php 9 Aug 2002 03:31:51 -0000 1.76 --- pnMod.php 10 Aug 2002 17:40:37 -0000 1.77 *************** *** 1067,1079 **** * @param hookid the id of the object the hook is called for (module-specific) * @param extrainfo extra information for the hook, dependent on hookaction * @returns mixed * @return output from hooks, or null if there are no hooks * @raise DATABASE_ERROR, BAD_PARAM, MODULE_NOT_EXIST, MODULE_FILE_NOT_EXIST, MODULE_FUNCTION_NOT_EXIST */ ! function pnModCallHooks($hookobject, $hookaction, $hookid, $extrainfo) { // FIXME: <marco> BAD_PARAM? ! $hooklist = pnModGetHookList(pnModGetName(),$hookobject,$hookaction); // TODO : check that this is the right way ! --- 1067,1087 ---- * @param hookid the id of the object the hook is called for (module-specific) * @param extrainfo extra information for the hook, dependent on hookaction + * @param formodule for what module are we calling this (used by modules admin) * @returns mixed * @return output from hooks, or null if there are no hooks * @raise DATABASE_ERROR, BAD_PARAM, MODULE_NOT_EXIST, MODULE_FILE_NOT_EXIST, MODULE_FUNCTION_NOT_EXIST */ ! function pnModCallHooks($hookobject, $hookaction, $hookid, $extrainfo, $formodule = NULL) { // FIXME: <marco> BAD_PARAM? ! // allow override of current module in special cases (e.g. modules admin) ! if (empty($formodule)) { ! $modname = pnModGetName(); ! } else { ! $modname = $formodule; ! } ! ! $hooklist = pnModGetHookList($modname,$hookobject,$hookaction); // TODO : check that this is the right way !
View Statistics - Next Notice - Previous Notice
Visit Developer Site - Browse CVS Repository |
Syndicate via backend.rss (max. once per hour please) | Powered by CVSNotice 0.1.3 |