mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-51025 tool_lp: Frameworks can be created on a category level
This commit is contained in:
parent
4511b7d694
commit
2de75345bb
31 changed files with 523 additions and 409 deletions
|
@ -4679,6 +4679,13 @@ class settings_navigation extends navigation_node {
|
|||
$categorynode->add(get_string('filters', 'admin'), $url, self::TYPE_SETTING, null, 'filters', new pix_icon('i/filter', ''));
|
||||
}
|
||||
|
||||
// Competency frameworks.
|
||||
if (has_capability('tool/lp:competencymanage', $catcontext)) {
|
||||
$url = new moodle_url('/admin/tool/lp/competencyframeworks.php', array('pagecontextid' => $catcontext->id));
|
||||
$categorynode->add(get_string('competencyframeworks', 'tool_lp'), $url, self::TYPE_SETTING, null,
|
||||
'competencyframeworks', new pix_icon('i/settings', ''));
|
||||
}
|
||||
|
||||
// Restore.
|
||||
if (has_capability('moodle/restore:restorecourse', $catcontext)) {
|
||||
$url = new moodle_url('/backup/restorefile.php', array('contextid' => $catcontext->id));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue