Merge branch 'MDL-43566-26' of https://github.com/willylee/moodle into MOODLE_26_STABLE

This commit is contained in:
Sam Hemelryk
2014-09-29 09:51:40 +13:00
+9
View File
@@ -1180,6 +1180,15 @@ class core_course_management_renderer extends plugin_renderer_base {
array('class' => 'action-edit')
);
}
// Delete.
if ($course->can_delete()) {
$actions[] = $this->output->action_icon(
new moodle_url('/course/delete.php', array('id' => $course->id)),
new pix_icon('t/delete', get_string('delete')),
null,
array('class' => 'action-delete')
);
}
// Show/Hide.
if ($course->can_change_visibility()) {
$actions[] = $this->output->action_icon(