. @package archires @author Nelly Mahu-Lasson, Xavier Caillaud @copyright Copyright (c) 2016-2021 Archires plugin team @license AGPL License 3.0 or (at your option) any later version http://www.gnu.org/licenses/agpl-3.0-standalone.html @link https://forge.glpi-project.org/projects/archires @since version 2.2 -------------------------------------------------------------------------- */ // Init the hooks of the plugins -Needed function plugin_init_archires() { global $PLUGIN_HOOKS,$CFG_GLPI; $PLUGIN_HOOKS['csrf_compliant']['archires'] = true; Plugin::registerClass('PluginArchiresProfile', ['addtabon' => ['Profile']]); $PLUGIN_HOOKS['pre_item_purge']['archires'] = ['Profile' => ['PluginArchiresProfile', 'purgeProfiles']]; if (Session::getLoginUserID()) { if (Session::haveRight("plugin_archires", READ)) { $PLUGIN_HOOKS["menu_toadd"]['archires'] = ['tools' => 'PluginArchiresMenu']; } if (Session::haveRight("plugin_archires", CREATE)) { $PLUGIN_HOOKS['use_massive_action']['archires'] = 1; } // Config page if (Session::haveRight("plugin_archires", UPDATE) || Session::haveRight("config", UPDATE)) { $PLUGIN_HOOKS['config_page']['archires'] = 'front/config.form.php'; } } } // Get the name and the version of the plugin - Needed function plugin_version_archires() { return ['name' => _n('Network Architecture', 'Network Architectures', 2, 'archires'), 'version' => '2.8.0', 'author' => 'Xavier Caillaud, Nelly Mahu-Lasson', 'license' => 'AGPLv3+', 'homepage' => ' https://forge.glpi-project.org/projects/archires', 'minGlpiVersion' => '9.4', 'requirements' => ['glpi' => ['min' => '9.5', 'max' => '9.6']]]; } // Uninstall process for plugin : need to return true if succeeded : may display messages or add to message after redirect function plugin_archires_check_config() { return true; }