Added outcomes link back again
This commit is contained in:
@@ -76,6 +76,14 @@ class block_admin extends block_list {
|
||||
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/grades.gif" class="icon" alt="" />';
|
||||
}
|
||||
|
||||
/// Course outcomes (to help give it more prominence because it's important)
|
||||
if (!empty($CFG->enableoutcomes)) {
|
||||
if (has_capability('moodle/course:update', $context) && ($course->id!==SITEID)) {
|
||||
$this->content->items[]='<a href="'.$CFG->wwwroot.'/grade/edit/outcome/course.php?id='.$this->instance->pageid.'">'.get_string('outcomes', 'grades').'</a>';
|
||||
$this->content->icons[]='<img src="'.$CFG->pixpath.'/i/outcomes.gif" class="icon" alt="" />';
|
||||
}
|
||||
}
|
||||
|
||||
/// Manage metacourses
|
||||
if ($course->metacourse) {
|
||||
if (has_capability('moodle/course:managemetacourse', $context)) {
|
||||
|
||||
Reference in New Issue
Block a user