. /** * Adds the search report link to the admin tree. * * @package report_search * @copyright 2015 David Monllao {@link http://www.davidmonllao.com} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); if ($hassiteconfig) { $searchurl = $CFG->wwwroot . '/report/search/index.php'; $ADMIN->add('reports', new admin_externalpage('reportsearch', new lang_string('pluginname', 'report_search'), $searchurl)); // No report settings. $settings = null; }