mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/16370] Add core events for Notification
PHPBB3-16370
This commit is contained in:
@@ -73,11 +73,11 @@ class ucp_notifications
|
||||
*
|
||||
* @since 3.2.10-RC1
|
||||
*/
|
||||
$vars = array(
|
||||
$vars = [
|
||||
'type_data',
|
||||
'method_data',
|
||||
'is_set_notify',
|
||||
);
|
||||
];
|
||||
extract($phpbb_dispatcher->trigger_event('core.ucp_notifications_submit_notification_is_set', compact($vars)));
|
||||
|
||||
if ($is_set_notify && (!isset($subscriptions[$type]) || !in_array($method_data['id'], $subscriptions[$type])))
|
||||
@@ -230,11 +230,11 @@ class ucp_notifications
|
||||
*
|
||||
* @since 3.2.10-RC1
|
||||
*/
|
||||
$vars = array(
|
||||
$vars = [
|
||||
'type_data',
|
||||
'method_data',
|
||||
'tpl_ary',
|
||||
);
|
||||
];
|
||||
extract($phpbb_dispatcher->trigger_event('core.ucp_notifications_output_notification_types_modify_template_vars', compact($vars)));
|
||||
|
||||
$template->assign_block_vars($block . '.notification_methods', $tpl_ary);
|
||||
|
@@ -353,13 +353,13 @@ class manager
|
||||
*
|
||||
* @since 3.2.10-RC1
|
||||
*/
|
||||
$vars = array(
|
||||
$vars = [
|
||||
'notification_type_name',
|
||||
'notification_method_name',
|
||||
'data',
|
||||
'notify_users',
|
||||
'notified_users',
|
||||
);
|
||||
];
|
||||
extract($this->phpbb_dispatcher->trigger_event('core.notification_manager_add_notifications_for_users_modify_data', compact($vars)));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user