mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 08:55:54 +00:00
call notification hooks before and after setting up email notification
This commit is contained in:
parent
cc6f64a1a3
commit
64f7e9be10
|
@ -60,9 +60,25 @@ if (isset($_COOKIE["mydms_session"])) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$notifier = new SeedDMS_NotificationService();
|
$notifier = new SeedDMS_NotificationService();
|
||||||
|
if(isset($GLOBALS['SEEDDMS_HOOKS']['notification'])) {
|
||||||
|
foreach($GLOBALS['SEEDDMS_HOOKS']['notification'] as $notificationObj) {
|
||||||
|
if(method_exists($notificationObj, 'preAddService')) {
|
||||||
|
$notificationObj->preAddService($notifier);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if($settings->_enableEmail) {
|
if($settings->_enableEmail) {
|
||||||
$notifier->addService(new SeedDMS_EmailNotify($dms));
|
$notifier->addService(new SeedDMS_EmailNotify($dms));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(isset($GLOBALS['SEEDDMS_HOOKS']['notification'])) {
|
||||||
|
foreach($GLOBALS['SEEDDMS_HOOKS']['notification'] as $notificationObj) {
|
||||||
|
if(method_exists($notificationObj, 'postAddService')) {
|
||||||
|
$notificationObj->postAddService($notifier);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
include $settings->_rootDir . "languages/" . $resArr["language"] . "/lang.inc";
|
include $settings->_rootDir . "languages/" . $resArr["language"] . "/lang.inc";
|
||||||
} else {
|
} else {
|
||||||
$user = null;
|
$user = null;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user