From 847e43ad31b7cee4b64a3be67b5ea82b0893a0b3 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 19 Oct 2007 12:33:59 +0000 Subject: [PATCH] Added hook calls for DHCP git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7602 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servDHCP.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/admin/systems/class_servDHCP.inc b/plugins/admin/systems/class_servDHCP.inc index eaeafbc3c..9f6f93f90 100644 --- a/plugins/admin/systems/class_servDHCP.inc +++ b/plugins/admin/systems/class_servDHCP.inc @@ -522,9 +522,15 @@ class servdhcp extends goService if ($modify){ $ldap->modify($attrs); show_ldap_error($ldap->get_error(), _("Can't save DHCP object!")); + + /* Optionally execute a command after we're done */ + $this->handle_post_events("modify"); } else { $ldap->add($attrs); show_ldap_error($ldap->get_error(), _("Can't save DHCP object!")); + + /* Optionally execute a command after we're done */ + $this->handle_post_events("create"); } } } -- 2.30.2