mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
More work on the tool return page to help the user get the tool configured.
This commit is contained in:
parent
9d57ad1737
commit
c4d80efeb6
9 changed files with 127 additions and 22 deletions
|
@ -384,11 +384,13 @@ function lti_grade_item_delete($basiclti) {
|
|||
function lti_extend_settings_navigation($settings, $parentnode) {
|
||||
global $PAGE;
|
||||
|
||||
$keys = $parentnode->get_children_key_list();
|
||||
if(has_capability('mod/lti:grade', get_context_instance(CONTEXT_MODULE, $PAGE->cm->id))){
|
||||
$keys = $parentnode->get_children_key_list();
|
||||
|
||||
$node = navigation_node::create('Submissions',
|
||||
new moodle_url('/mod/lti/grade.php', array('id'=>$PAGE->cm->id)),
|
||||
navigation_node::TYPE_SETTING, null, 'mod_lti_submissions');
|
||||
|
||||
$parentnode->add_node($node, $keys[1]);
|
||||
$node = navigation_node::create('Submissions',
|
||||
new moodle_url('/mod/lti/grade.php', array('id'=>$PAGE->cm->id)),
|
||||
navigation_node::TYPE_SETTING, null, 'mod_lti_submissions');
|
||||
|
||||
$parentnode->add_node($node, $keys[1]);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue