mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/16370] Add core events for Notification
PHPBB3-16370
This commit is contained in:
parent
5f4522e55b
commit
255c79a8f7
2 changed files with 6 additions and 6 deletions
|
@ -73,11 +73,11 @@ class ucp_notifications
|
||||||
*
|
*
|
||||||
* @since 3.2.10-RC1
|
* @since 3.2.10-RC1
|
||||||
*/
|
*/
|
||||||
$vars = array(
|
$vars = [
|
||||||
'type_data',
|
'type_data',
|
||||||
'method_data',
|
'method_data',
|
||||||
'is_set_notify',
|
'is_set_notify',
|
||||||
);
|
];
|
||||||
extract($phpbb_dispatcher->trigger_event('core.ucp_notifications_submit_notification_is_set', compact($vars)));
|
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])))
|
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
|
* @since 3.2.10-RC1
|
||||||
*/
|
*/
|
||||||
$vars = array(
|
$vars = [
|
||||||
'type_data',
|
'type_data',
|
||||||
'method_data',
|
'method_data',
|
||||||
'tpl_ary',
|
'tpl_ary',
|
||||||
);
|
];
|
||||||
extract($phpbb_dispatcher->trigger_event('core.ucp_notifications_output_notification_types_modify_template_vars', compact($vars)));
|
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);
|
$template->assign_block_vars($block . '.notification_methods', $tpl_ary);
|
||||||
|
|
|
@ -353,13 +353,13 @@ class manager
|
||||||
*
|
*
|
||||||
* @since 3.2.10-RC1
|
* @since 3.2.10-RC1
|
||||||
*/
|
*/
|
||||||
$vars = array(
|
$vars = [
|
||||||
'notification_type_name',
|
'notification_type_name',
|
||||||
'notification_method_name',
|
'notification_method_name',
|
||||||
'data',
|
'data',
|
||||||
'notify_users',
|
'notify_users',
|
||||||
'notified_users',
|
'notified_users',
|
||||||
);
|
];
|
||||||
extract($this->phpbb_dispatcher->trigger_event('core.notification_manager_add_notifications_for_users_modify_data', compact($vars)));
|
extract($this->phpbb_dispatcher->trigger_event('core.notification_manager_add_notifications_for_users_modify_data', compact($vars)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue