-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlib.php
More file actions
27 lines (21 loc) · 842 Bytes
/
lib.php
File metadata and controls
27 lines (21 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/**
* Created by PhpStorm.
* User: devon
* Date: 24/09/15
* Time: 10:10 AM
*/
function local_autotagger_extend_settings_navigation(navigation_node $settingsnav, context $context)
{
global $COURSE;
if ($coursenode = $settingsnav->find('courseadmin', navigation_node::TYPE_COURSE)) {
$autotaggernode = $coursenode->add('Autotagger', null, navigation_node::TYPE_CONTAINER);
$courseid = $COURSE->id;
$autotaggernode->add('Autotag Questions',
new moodle_url('/local/autotagger/view/autotagger.php', array('courseid' => $courseid)),
navigation_node::TYPE_SETTING);
$autotaggernode->add('Autotag Settings',
new moodle_url('/local/autotagger/view/autotagger_settings.php', array('courseid' => $courseid)),
navigation_node::TYPE_SETTING);
}
}