MDL-25864 Blog: Confirmation dialog before unregistering

This commit is contained in:
Rushikesh
2016-01-21 19:24:47 +05:30
parent eddec36d49
commit f07e428c26
+4 -2
View File
@@ -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 . '&nbsp'. $deleteicon));
$editicon . $deleteicon));
}
echo html_writer::table($table);
}