From 6fec33c3a7ad322898b546bcf555ab80afa2a392 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 17 Mar 2026 21:05:05 +0100 Subject: [PATCH] add method batchoperation() to run a batch operation by hook --- views/bootstrap/class.Search.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/views/bootstrap/class.Search.php b/views/bootstrap/class.Search.php index 081feea16..55fd19f91 100644 --- a/views/bootstrap/class.Search.php +++ b/views/bootstrap/class.Search.php @@ -401,6 +401,17 @@ $(document).ready(function() { return self::show(); } /* }}} */ + function batchoperation() { /* {{{ */ + $dms = $this->params['dms']; + $user = $this->params['user']; + + if (false === $this->callHook('runBatchOperation')) { + $this->setParam('batchmsg', 'Aiii, error'); + } + + return self::show(); + } /* }}} */ + function opensearchsuggestion() { /* {{{ */ $dms = $this->params['dms']; $user = $this->params['user'];