From 0faee6bc0b1265e7fbe162a899840b52b7b04887 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Sun, 23 Dec 2018 23:47:44 -0500 Subject: [PATCH] Add hook to allow plugins to add extra fields to subdomains --- bureau/admin/dom_edit.inc.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/bureau/admin/dom_edit.inc.php b/bureau/admin/dom_edit.inc.php index 9396c38b..160d46a1 100755 --- a/bureau/admin/dom_edit.inc.php +++ b/bureau/admin/dom_edit.inc.php @@ -28,7 +28,7 @@ require_once("../class/config.php"); include_once("head.php"); function sub_domains_edit($domain, $sub_domain_id=false) { - global $admin, $msg, $oldid, $isedit; + global $admin, $msg, $oldid, $isedit, $hooks; $dom=new m_dom(); $dom->lock(); @@ -135,6 +135,16 @@ $dom->unlock(); +invoke('hook_subdomain_type_extra_fields', array($dt, $domain, $sub_domain_id));?> + + + $extra): ?> + $f): ?> + + + + +