From 1a7fa4663ee5dcdd4b2f0d9eace3d3908b73b09a Mon Sep 17 00:00:00 2001 From: Matthew Barbour Date: Fri, 21 Jun 2019 15:28:20 -0500 Subject: [PATCH] Added search_terms to the bulk action event --- ext/bulk_actions/main.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/bulk_actions/main.php b/ext/bulk_actions/main.php index 073a85f1..b945f727 100644 --- a/ext/bulk_actions/main.php +++ b/ext/bulk_actions/main.php @@ -14,6 +14,8 @@ class BulkActionBlockBuildingEvent extends Event /** @var array */ public $actions = []; + public $search_terms = []; + public function add_action(String $action, string $button_text, String $confirmation_message = "", String $block = "", int $position = 40) { if ($block == null) { @@ -58,6 +60,8 @@ class BulkActions extends Extension if ($user->is_logged_in()) { $babbe = new BulkActionBlockBuildingEvent(); + $babbe->search_terms = $event->search_terms; + send_event($babbe); if (sizeof($babbe->actions) == 0) {