/** * @param $args * * @return false|void */ public function unregisterWidgets($args) { if (!SecurityUtil::checkPermission('Dashboard::', '::', ACCESS_ADMIN)) { return LogUtil::registerPermissionError(); } return Dashboard_Util::unregisterWidgets($args['module']); }
/** * On an module remove hook call this listener * * Listens for the 'installer.module.uninstalled' event. * * @param Zikula_Event $event Event. * * @return void */ public static function onUninstallModule(Zikula_Event $event) { $moduleName = $event['name']; Dashboard_Util::unregisterWidgets($moduleName); }