Changeset 220248
- Timestamp:
- 03/20/2010 09:46:49 PM (16 years ago)
- Location:
- underconstruction
- Files:
-
- 2 edited
-
tags/1.04/underConstruction.php (modified) (2 diffs)
-
trunk/underConstruction.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
underconstruction/tags/1.04/underConstruction.php
r220245 r220248 155 155 } 156 156 157 function uc_delete()158 {159 //get rid of everything160 delete_option('underConstructionHTML');161 delete_option('underConstructionActivationStatus');162 delete_option('underConstructionCustomText');163 delete_option('underConstructionDisplayOption');164 delete_option('underConstructionHTTPStatus');165 delete_option('underConstructionArchive');166 }167 168 157 function pluginIsActive() 169 158 { … … 268 257 register_activation_hook(__FILE__, array($underConstructionPlugin, 'uc_activate')); 269 258 register_deactivation_hook(__FILE__, array($underConstructionPlugin, 'uc_deactivate')); 270 register_uninstall_hook(__FILE__, array($underConstructionPlugin, 'uc_delete'));259 register_uninstall_hook(__FILE__, 'underConstructionPlugin_delete'); 271 260 272 261 273 262 add_action('admin_init', array($underConstructionPlugin, 'underConstructionAdminInit')); 274 263 add_action('admin_menu', array($underConstructionPlugin, 'uc_adminMenu')); 264 265 function underConstructionPlugin_delete() 266 { 267 delete_option('underConstructionArchive'); 268 } 275 269 276 270 -
underconstruction/trunk/underConstruction.php
r220236 r220248 155 155 } 156 156 157 function uc_delete()158 {159 //get rid of everything160 delete_option('underConstructionHTML');161 delete_option('underConstructionActivationStatus');162 delete_option('underConstructionCustomText');163 delete_option('underConstructionDisplayOption');164 delete_option('underConstructionHTTPStatus');165 delete_option('underConstructionArchive');166 }167 168 157 function pluginIsActive() 169 158 { … … 268 257 register_activation_hook(__FILE__, array($underConstructionPlugin, 'uc_activate')); 269 258 register_deactivation_hook(__FILE__, array($underConstructionPlugin, 'uc_deactivate')); 270 register_uninstall_hook(__FILE__, array($underConstructionPlugin, 'uc_delete'));259 register_uninstall_hook(__FILE__, 'underConstructionPlugin_delete'); 271 260 272 261 273 262 add_action('admin_init', array($underConstructionPlugin, 'underConstructionAdminInit')); 274 263 add_action('admin_menu', array($underConstructionPlugin, 'uc_adminMenu')); 264 265 function underConstructionPlugin_delete() 266 { 267 delete_option('underConstructionArchive'); 268 } 275 269 276 270
Note: See TracChangeset
for help on using the changeset viewer.