From a9701d99f71036b017f0e53b69b9e2dbf89b7700 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Sun, 23 Dec 2018 23:44:54 -0500 Subject: [PATCH] Add hook "hook_dom_del_subdomain" on sub domain deletion --- bureau/class/m_dom.php | 1 + 1 file changed, 1 insertion(+) diff --git a/bureau/class/m_dom.php b/bureau/class/m_dom.php index 671486bc..be36be16 100644 --- a/bureau/class/m_dom.php +++ b/bureau/class/m_dom.php @@ -1978,6 +1978,7 @@ class m_dom { if ($subdom["web_action"]=="DELETE") { $db->query("DELETE FROM sub_domaines WHERE id=?;",array($id)); + $hooks->invoke('hook_dom_del_subdomain', array($id)); } else { // we keep the highest result returned by hooks... rsort($ret,SORT_NUMERIC); $returncode=$ret[0];