Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-tool_lifecycle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-tool_lifecycle
Commits
99e19a2a
Unverified
Commit
99e19a2a
authored
8 years ago
by
Tobias Reischmann
Browse files
Options
Downloads
Patches
Plain Diff
Grouped settings to own category
parent
cace12d1
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
adminlib.php
+1
-1
1 addition, 1 deletion
adminlib.php
lang/en/tool_cleanupcourses.php
+7
-7
7 additions, 7 deletions
lang/en/tool_cleanupcourses.php
settings.php
+7
-3
7 additions, 3 deletions
settings.php
with
15 additions
and
11 deletions
adminlib.php
+
1
−
1
View file @
99e19a2a
This diff is collapsed.
Click to expand it.
lang/en/tool_cleanupcourses.php
+
7
−
7
View file @
99e19a2a
...
...
@@ -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'
;
This diff is collapsed.
Click to expand it.
settings.php
+
7
−
3
View file @
99e19a2a
...
...
@@ -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'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment