Make $struct in the *Handler classes customizeable

config.inc.php:
- add $CONF['*_struct_hook'] to modify $struct in the *Handler classes

PFAHandler.php:
- call $CONF['*_struct_hook'] hook

AdminHandler.php, AliasdomainHandler.php, DomainHandler.php:
- remove now outdated TODO notes


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1303 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
Christian Boltz committed 2011-12-20 23:07:34 +00:00
1 parent 6eb7e9f794
commit 18b8564b64
5 files changed
+44 -6

No files matched your search

+6
View File
@@ -40,6 +40,12 @@ class PFAHandler {
}
$this->initStruct();
$struct_hook = Config::read($this->db_table . '_struct_hook');
if ( $struct_hook != 'NO' && function_exists($struct_hook) ) {
$this->struct = $struct_hook($this->struct);
}
$this->initMsg();
}