From db2144c2a38cffc212395cca03c4f8d34dde3cfe Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 3 Mar 2026 14:47:36 +0100 Subject: [PATCH] call hook for any other command --- op/op.Ajax.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/op/op.Ajax.php b/op/op.Ajax.php index 9a3c07290..b57372089 100644 --- a/op/op.Ajax.php +++ b/op/op.Ajax.php @@ -1574,5 +1574,13 @@ switch($command) { } } break; /* }}} */ + default: + if(isset($GLOBALS['SEEDDMS_HOOKS']['ajax'])) { + foreach($GLOBALS['SEEDDMS_HOOKS']['ajax'] as $hookObj) { + if (method_exists($hookObj, 'runcommand')) { + $ret = $hookObj->runcommand($command, $request, $dms, $settings); + } + } + } + } -?>