From d47f4d50d9b4f8dae1cc251588c8a61ce8299386 Mon Sep 17 00:00:00 2001 From: NinaHerrmann Date: Mon, 10 Jun 2024 16:25:35 +0200 Subject: [PATCH] added setting - coursecategorydepth --- lang/en/tool_lifecycle.php | 2 ++ settings.php | 4 ++++ version.php | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lang/en/tool_lifecycle.php b/lang/en/tool_lifecycle.php index 1d96728d..8cdb5d8b 100644 --- a/lang/en/tool_lifecycle.php +++ b/lang/en/tool_lifecycle.php @@ -52,6 +52,8 @@ $string['config_backup_path'] = 'Path of the lifecycle backup folder'; $string['config_backup_path_desc'] = 'This settings defines the storage location of the backups created by the backup step. The path has to be specified as an absolute path on your server.'; +$string['config_coursecategorydepth'] = 'Depth of categories to be shown in the interaction table.'; +$string['config_coursecategorydepth_desc'] = 'By default the first category is shown when teachers manage the status of their courses on the view.php. The setting enables to show not the first level of categories but subcategories.'; $string['config_delay_duration'] = 'Default duration of a course delay'; $string['config_delay_duration_desc'] = 'This setting defines the default delay duration of a workflow in case one of its processes is rolled back or finishes. diff --git a/settings.php b/settings.php index 3f37c086..85bdacbe 100644 --- a/settings.php +++ b/settings.php @@ -46,6 +46,10 @@ get_string('config_showcoursecounts', 'tool_lifecycle'), get_string('config_showcoursecounts_desc', 'tool_lifecycle'), 1)); + $settings->add(new admin_setting_configtext('tool_lifecycle/coursecategorydepth', + get_string('config_coursecategorydepth', 'tool_lifecycle'), + get_string('config_coursecategorydepth_desc', 'tool_lifecycle'), + 1, PARAM_INT)); $ADMIN->add('lifecycle_category', new admin_externalpage('tool_lifecycle_workflow_drafts', get_string('workflow_drafts_header', 'tool_lifecycle'), diff --git a/version.php b/version.php index e8f6b54a..8e954246 100644 --- a/version.php +++ b/version.php @@ -25,7 +25,7 @@ defined('MOODLE_INTERNAL') || die; $plugin->maturity = MATURITY_BETA; -$plugin->version = 2024042300; +$plugin->version = 2024042301; $plugin->component = 'tool_lifecycle'; $plugin->requires = 2022112800; // Requires Moodle 4.1+. $plugin->release = 'v4.4-r1';