$ADMIN->add('reports', new admin_externalpage('report'.$plugin, $reportname, $www_path, 'moodle/site:viewreports'));
}
+// Now add various admin tools
+foreach (get_plugin_list('tool') as $plugin => $plugindir) {
+ $settings_path = "$plugindir/settings.php";
+ if (file_exists($settings_path)) {
+ include($settings_path);
+ }
+}
/// Add all local plugins - must be always last!
if ($hassiteconfig) {
$string['type_repository_plural'] = 'Repositories';
$string['type_theme'] = 'Theme';
$string['type_theme_plural'] = 'Themes';
+$string['type_tool'] = 'Admin tool';
+$string['type_tool_plural'] = 'Admin tools';
$string['type_webservice'] = 'Webservice protocol';
$string['type_webservice_plural'] = 'Webservice protocols';
$string['uninstall'] = 'Uninstall';
'qbehaviour' => 'question/behaviour',
'qformat' => 'question/format',
'plagiarism' => 'plagiarism',
- 'theme' => 'theme'); // this is a bit hacky, themes may be in $CFG->themedir too
+ 'tool' => $CFG->admin.'/tool',
+ 'theme' => 'theme', // this is a bit hacky, themes may be in $CFG->themedir too
+ );
$mods = get_plugin_list('mod');
foreach ($mods as $mod => $moddir) {
'standardold'
),
+ 'tool' => array(
+ ),
+
'webservice' => array(
'amf', 'rest', 'soap', 'xmlrpc'
),