MDL-25864 Blog: Confirmation dialog before unregistering
This commit is contained in:
@@ -95,13 +95,15 @@ if (!empty($blogs)) {
|
||||
$editicon = $OUTPUT->action_icon($editurl, new pix_icon('t/edit', get_string('editexternalblog', 'blog')));
|
||||
|
||||
$deletelink = new moodle_url('/blog/external_blogs.php', array('delete' => $blog->id, 'sesskey' => sesskey()));
|
||||
$deleteicon = $OUTPUT->action_icon($deletelink, new pix_icon('t/delete', get_string('deleteexternalblog', 'blog')));
|
||||
$action = new confirm_action(get_string('externalblogdeleteconfirm', 'blog'));
|
||||
$deleteicon = $OUTPUT->action_icon($deletelink, new pix_icon('t/delete', get_string('deleteexternalblog', 'blog')),
|
||||
$action);
|
||||
|
||||
$table->data[] = new html_table_row(array($blog->name,
|
||||
$blog->url,
|
||||
userdate($blog->timefetched),
|
||||
$validicon,
|
||||
$editicon . ' '. $deleteicon));
|
||||
$editicon . $deleteicon));
|
||||
}
|
||||
echo html_writer::table($table);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user