/** * deactivation hook */ function hw_module_awc_register_deactivation_hook() { hwawc_unregister_all_sidebars(); }
/** * preparing sidebars, because this data maybe used for any module */ protected function setup_sidebars() { hwawc_unregister_all_sidebars(); //remove all sidebars for first $sidebars = $this->theme_config->item('sidebars'); foreach ($sidebars as $name => $item) { hwawc_register_sidebar($item['params']); } $this->command_log('Setup sidebars successful'); }
/** * on theme deactivation hook */ public function _theme_deactivation_hook() { //unregister all sidebars hwawc_unregister_all_sidebars(); }