. /** * Adds this plugin to the admin menu. * * @package tool * @subpackage qeupgradehelper * @copyright 2011 The Open University * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die; if ($hassiteconfig) { // needs this condition or there is error on login page $ADMIN->add('root', new admin_externalpage('qeupgradehelper', get_string('pluginname', 'tool_qeupgradehelper'), new moodle_url('/admin/tool/qeupgradehelper/index.php'))); }