]> git.mjollnir.org Git - moodle.git/commitdiff
Added outcomes link back again
authormoodler <moodler>
Thu, 2 Aug 2007 07:39:24 +0000 (07:39 +0000)
committermoodler <moodler>
Thu, 2 Aug 2007 07:39:24 +0000 (07:39 +0000)
blocks/admin/block_admin.php

index 1bbc631c1bc314502937a9c2c83b92e261c03e6a..a2410f2ce8e89abaa3867ddf2b77a2b5d7a9dc65 100644 (file)
@@ -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)) {