Skip to content

Commit

Permalink
MDL-43566 course: add delete icon to search returns in course managem…
Browse files Browse the repository at this point in the history
…ent listings
  • Loading branch information
willylee committed Sep 25, 2014
1 parent 8152e9f commit 387ec15
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions course/classes/management_renderer.php
Expand Up @@ -1180,6 +1180,15 @@ public function search_listitem_actions(course_in_list $course) {
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(
Expand Down

0 comments on commit 387ec15

Please sign in to comment.