Xaraya / Postnuke CVS Notices - Message

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 Notice

Directory filter : [ all ] / postnuke_official / html / modules / modules [ view in CVS ]


Deprecated: Function gmstrftime() is deprecated in /home/mikespub/www/list.php on line 509
Date Directory [filter] File(s) [view] Author [filter]
10 Aug 2002 17:41:49postnuke_official/html/modules/modulespnadminapi.php,1.45,1.46Mike
 on module remove, call category delete hooks and then remove hooks

Update of /home/cvsroot/postnuke_official/html/modules/modules
In directory ns7.hostnuke.net:/tmp/cvs-serv1225

Modified Files:
	pnadminapi.php 
Log Message:
on module remove, call category delete hooks and then remove hooks


Index: pnadminapi.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/modules/pnadminapi.php,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -d -r1.45 -r1.46
*** pnadminapi.php	10 Aug 2002 16:29:55 -0000	1.45
--- pnadminapi.php	10 Aug 2002 17:41:47 -0000	1.46
***************
*** 331,338 ****
      // Delete any module variables that the module cleanup function might
      // have missed
- 
      $query = "DELETE FROM $moduletable WHERE pn_modname = " . pnVarPrepForStore($modinfo['name']);
      $dbconn->Execute($query);
  
      $query = "DELETE FROM $pntable[modules]
                WHERE pn_regid = " . pnVarPrepForStore($regid);
--- 331,352 ----
      // Delete any module variables that the module cleanup function might
      // have missed
      $query = "DELETE FROM $moduletable WHERE pn_modname = " . pnVarPrepForStore($modinfo['name']);
      $dbconn->Execute($query);
  
+ // TODO: do the same for create hooks somewhere (on initialise ?)
+ 
+     // Call any 'category' delete hooks assigned for that module
+     // (notice we're using the module name as object id, and adding an
+     // extra parameter telling pnModCallHooks for *which* module we're
+     // calling hooks here)
+     pnModCallHooks('category','delete',$modinfo['name'],'',$modinfo['name']);
+ 
+     // Delete any hooks assigned for that module, or by that module
+     $query = "DELETE FROM $pntable[hooks]
+               WHERE pn_smodule = '" . pnVarPrepForStore($modinfo['name']) . "'
+                  OR pn_tmodule = '" . pnVarPrepForStore($modinfo['name']) . "'";
+     $dbconn->Execute($query);
+ 
+     // Delete the module from the modules table
      $query = "DELETE FROM $pntable[modules]
                WHERE pn_regid = " . pnVarPrepForStore($regid);


Directory filter : [ all ] / postnuke_official / html / modules / modules [ view in CVS ]

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