From fa193b2c444342117f5647877080f9a964d965c1 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 16 Apr 2020 12:27:51 +0200 Subject: [statistics] Add hook for client machine events Now other modules can react to poweron/off etc. --- modules-available/statistics/api.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules-available/statistics/api.inc.php b/modules-available/statistics/api.inc.php index 64925791..af773a61 100644 --- a/modules-available/statistics/api.inc.php +++ b/modules-available/statistics/api.inc.php @@ -385,6 +385,9 @@ if ($type{0} === '~') { } else { die("INVALID ACTION '$type'\n"); } + foreach (Hook::load('client-update') as $hook) { + include_once $hook->file; + } die("OK. (RESULT=0)\n"); } -- cgit v1.2.3-55-g7522