FEATURE #1551: add method for deleting extra content

This commit is contained in:
Michal Kváček
2016-04-11 01:20:11 +02:00
parent 951a8314b7
commit 288b1043b5
3 changed files with 20 additions and 0 deletions
@@ -228,6 +228,9 @@ class EditContent extends Controller
list ($revision, $changedColumns) = $page->updateWithHistory(['status' => 'status'], ['status' => Content::STATUS_DELETED]);
// let module to delete some extra content created during page's life
call_user_func([$page->module_handler, 'delete'], $page);
// was something changed?
if ($changedColumns == 0) {
return redirect()