Bulk action extension

This commit is contained in:
Matthew Barbour
2019-06-05 18:03:22 -05:00
parent 8741529590
commit 66df295ec1
9 changed files with 612 additions and 28 deletions

View File

@@ -124,13 +124,13 @@ class AdminPage extends Extension
}
}
public function onPostListBuilding(PostListBuildingEvent $event)
{
global $user;
if ($user->can("manage_admintools") && !empty($event->search_terms)) {
$event->add_control($this->theme->dbq_html(Tag::implode($event->search_terms)));
}
}
// public function onPostListBuilding(PostListBuildingEvent $event)
// {
// global $user;
// if ($user->can("manage_admintools") && !empty($event->search_terms)) {
// $event->add_control($this->theme->dbq_html(Tag::implode($event->search_terms)));
// }
// }
private function delete_by_query()
{