Skip to content

Commit

Permalink
removed(blogs): no longer show a delete button on blog edit form
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalsem committed Nov 25, 2022
1 parent bb71b80 commit 8274c0e
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions mod/blog/views/default/forms/blog/save.php
Expand Up @@ -109,16 +109,4 @@
]);
}

if ($blog instanceof \ElggBlog) {
// add a delete button if editing
$footer .= elgg_view('output/url', [
'href' => elgg_generate_action_url('entity/delete', [
'guid' => $blog->guid,
]),
'text' => elgg_echo('delete'),
'class' => ['elgg-button', 'elgg-button-delete', 'float-alt'],
'confirm' => true,
]);
}

elgg_set_form_footer($footer);

0 comments on commit 8274c0e

Please sign in to comment.