/** * function unregister * Unregisters a module to remove it from the 'add item' module list * @param string $name module name */ public static function unregister($name) { // remove any instances currently on the dashboard Modules::remove_by_name($name); self::$available_modules = array_diff(self::$available_modules, array($name)); self::commit_active(); self::commit(); }
/** * action_plugin_deactivation * Unregisters the core modules. * @param string $file plugin file */ function action_plugin_deactivation($file) { if (Plugins::id_from_file($file) == Plugins::id_from_file(__FILE__)) { Modules::remove_by_name('Latest Entries'); Modules::remove_by_name('Latest Comments'); Modules::remove_by_name('Latest Log Activity'); } }
/** * action_plugin_deactivation * Unregisters the core modules. * @param string $file plugin file */ public function action_plugin_deactivation($file) { if (Plugins::id_from_file($file) == Plugins::id_from_file(__FILE__)) { foreach ($this->reports as $rpt => $data) { Modules::remove_by_name($data['module']); } } }
function action_plugin_deactivation($file) { if (Plugins::id_from_file($file) == Plugins::id_from_file(__FILE__)) { // remove the module from the dash if it is active Modules::remove_by_name('Incoming Links'); // Remove the periodical execution event CronTab::delete_cronjob('incoming_links'); // Clear the cached links Cache::expire('incoming_links'); } }
public function action_plugin_deactivation($file) { if (realpath($file) == __FILE__) { Options::delete('getclicky__siteid'); Options::delete('getclicky__sitekey'); Options::delete('getclicky__sitedb'); Options::delete('getclicky__loggedin'); Options::delete('getclicky__cachetime'); $this->clearCache(); Modules::remove_by_name('GetClicky'); } }
public function action_plugin_deactivation($file = '') { if (Plugins::id_from_file($file) == Plugins::id_from_file(__FILE__)) { ACL::destroy_token('snapshot'); // wipe out the default options we added Options::delete('exportsnapshot__frequency'); Options::delete('exportsnapshot__type'); // remove the module Modules::remove_by_name(_t('Snapshots', 'exportsnapshot')); // @todo what about the snapshots option and deleting those cached items? // probably an uninstall method too? } }
/** * action_plugin_deactivation * Unregisters the core modules. * @param string $file plugin file */ function action_plugin_deactivation($file) { if (Plugins::id_from_file($file) == Plugins::id_from_file(__FILE__)) { Modules::remove_by_name('Latest Spam'); } }
/** * action_plugin_deactivation * Unregisters the module. * @param string $file plugin file */ function action_plugin_deactivation($file) { Modules::remove_by_name('My Tickets'); }
function action_plugin_deactivation($file) { Modules::remove_by_name('123LinkIt'); }
public function action_plugin_deactivation($file) { if (realpath($file) == __FILE__) { Modules::remove_by_name('Technorati'); } }