Update of /cvsroot/phpwebsite-comm/modules/staffman/boost
In directory sc8-pr-cvs1:/tmp/cvs-serv11183/boost
Modified Files:
uninstall.php
Log Message:
On uninstall, remove corresponding menu item or fatcat entries.
Index: uninstall.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/staffman/boost/uninstall.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** uninstall.php 31 Jul 2003 00:45:43 -0000 1.2
--- uninstall.php 5 Sep 2003 14:22:56 -0000 1.3
***************
*** 22,30 ****
/* uninstall help */
! if(isset($_SESSION["OBJ_help"])) {
CLS_help::uninstall_help("staffman");
$content .= "Staff Listing removed from Help system.<br />";
}
/* uninstall search */
$GLOBALS['core']->sqlDelete("mod_search_register", "module", "staffman");
--- 22,42 ----
/* uninstall help */
! if (isset($_SESSION["OBJ_help"])) {
CLS_help::uninstall_help("staffman");
$content .= "Staff Listing removed from Help system.<br />";
}
+ /* remove any staffmember fatcat items */
+ if(isset($_SESSION["OBJ_fatcat"])) {
+ if(PHPWS_Fatcat::purge(NULL, "faq"))
+ $content .= "Removed any staffmembers in fatcat categories.<br />";
+ }
+
+ /* uninstall menu item, if any */
+ if (isset($_SESSION["OBJ_menuman"])) {
+ if($GLOBALS["core"]->sqlDelete("mod_menuman_items", "menu_item_url", "%module=staffman%", "LIKE"))
+ $content .= "Removed link to Staffmember Listing from menu.<br />";
+ }
+
/* uninstall search */
$GLOBALS['core']->sqlDelete("mod_search_register", "module", "staffman");
|