public function saveMappingHook($mapping) { $removeList = $this->allowedModuleList; if (is_array($mapping['beans'])) { foreach ($mapping['beans'] as $module => $ignore) { unset($removeList[$module]); check_logic_hook_file($module, 'after_ui_frame', array(1, $module . ' InsideView frame', 'modules/Connectors/connectors/sources/ext/rest/insideview/InsideViewLogicHook.php', 'InsideViewLogicHook', 'showFrame')); } } foreach ($removeList as $module) { remove_logic_hook($module, 'after_ui_frame', array(1, $module . ' InsideView frame', 'modules/Connectors/connectors/sources/ext/rest/insideview/InsideViewLogicHook.php', 'InsideViewLogicHook', 'showFrame')); } return parent::saveMappingHook($mapping); }
function disable_manifest_logichooks() { if (empty($this->installdefs['logic_hooks']) || !is_array($this->installdefs['logic_hooks'])) { return; } foreach ($this->installdefs['logic_hooks'] as $hook) { remove_logic_hook($hook['module'], $hook['hook'], array($hook['order'], $hook['description'], $hook['file'], $hook['class'], $hook['function'])); } }
function removeHook($file, $className) { remove_logic_hook($this->module, "before_save", array(1, $this->module . " push feed", $file, $className, "pushFeed")); }
public function mark_deleted($id) { if ($this->id != $id) { $this->retrieve($id); // does not exist - no need to delete if (empty($this->id)) { return; } } remove_logic_hook($this->webhook_target_module, $this->trigger_event, $this->getActionArray()); parent::mark_deleted($id); }