Skip to content
Snippets Groups Projects
Unverified Commit 99e19a2a authored by Tobias Reischmann's avatar Tobias Reischmann
Browse files

Grouped settings to own category

parent cace12d1
No related branches found
No related tags found
No related merge requests found
......@@ -27,15 +27,15 @@
$string['pluginname'] = 'Cleanup Courses';
$string['plugintitle'] = 'Cleanup Courses';
$string['general_config_header'] = "Cleanup Courses Settings";
$string['general_config_header'] = "General & Subplugins";
$string['active_processes_list_header'] = 'Active Processes';
$string['subpluginssettings_heading'] = 'Subplugin Workflow';
$string['subplugin_name'] = 'Subplugin Name';
$string['subplugin_type'] = 'Subplugin Type';
$string['subplugin_enabled'] = 'Enabled';
$string['trigger'] = 'Trigger';
$string['subplugintype_cleanupcoursestrigger'] = 'Trigger for starting the course cleanup';
$string['subplugintype_cleanupcoursestrigger_plural'] = 'Triggers for starting the course cleanup';
$string['active_processes_list_header'] = 'List of Active Course Cleanup Processes';
$string['subpluginssettings_heading'] = 'Subplugin Settings Cleanup Courses';
$string['subplugin_name'] = 'Subplugin Name';
$string['subplugin_type'] = 'Subplugin Type';
$string['subplugin_enabled'] = 'Enabled';
......@@ -26,11 +26,15 @@ defined('MOODLE_INTERNAL') || die;
if ($hassiteconfig) {
require_once(__DIR__ . '/adminlib.php');
$ADMIN->add('tools', new tool_cleanupcourses\admin_page_active_processes());
$ADMIN->add('tools', new tool_cleanupcourses\admin_page_sublugins());
$category = new admin_category('cleanupcourses_category',
get_string('pluginname', 'tool_cleanupcourses'));
$ADMIN->add('tools', $category);
$settings = new admin_settingpage('tool_cleanupcourses',
get_string('general_config_header', 'tool_cleanupcourses'));
$ADMIN->add('tools', $settings);
$ADMIN->add('cleanupcourses_category', $settings);
$ADMIN->add('cleanupcourses_category', new tool_cleanupcourses\admin_page_active_processes());
$ADMIN->add('cleanupcourses_category', new tool_cleanupcourses\admin_page_sublugins());
if ($ADMIN->fulltree) {
$triggers = core_component::get_plugin_list('cleanupcoursestrigger');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment