diff options
author | Simon Rettberg | 2020-04-16 12:27:51 +0200 |
---|---|---|
committer | Simon Rettberg | 2020-05-07 12:39:01 +0200 |
commit | fa193b2c444342117f5647877080f9a964d965c1 (patch) | |
tree | c5d886f7d5443082bddace07e2e7a39a7f84039d | |
parent | [rebootcontrol] Fix indirect subnet to subnet WOL (diff) | |
download | slx-admin-fa193b2c444342117f5647877080f9a964d965c1.tar.gz slx-admin-fa193b2c444342117f5647877080f9a964d965c1.tar.xz slx-admin-fa193b2c444342117f5647877080f9a964d965c1.zip |
[statistics] Add hook for client machine events
Now other modules can react to poweron/off etc.
-rw-r--r-- | modules-available/statistics/api.inc.php | 3 |
1 files changed, 3 insertions, 0 deletions
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"); } |