mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
[ticket/16411] Add vars to notification core events
PHPBB3-16411
This commit is contained in:
parent
0fa0013a69
commit
443b931b36
2 changed files with 5 additions and 1 deletions
|
@ -70,6 +70,7 @@ class ucp_notifications
|
|||
* @var array type_data The notification type data
|
||||
* @var array method_data The notification method data
|
||||
* @var bool is_set_notify The notification is set or not
|
||||
* @var array subscriptions The subscriptions data
|
||||
*
|
||||
* @since 3.2.10-RC1
|
||||
*/
|
||||
|
@ -77,6 +78,7 @@ class ucp_notifications
|
|||
'type_data',
|
||||
'method_data',
|
||||
'is_set_notify',
|
||||
'subscriptions',
|
||||
];
|
||||
extract($phpbb_dispatcher->trigger_event('core.ucp_notifications_submit_notification_is_set', compact($vars)));
|
||||
|
||||
|
@ -225,6 +227,7 @@ class ucp_notifications
|
|||
* @var array type_data The notification type data
|
||||
* @var array method_data The notification method data
|
||||
* @var array tpl_ary The template variables
|
||||
* @var array subscriptions The subscriptions data
|
||||
*
|
||||
* @since 3.2.10-RC1
|
||||
*/
|
||||
|
@ -232,6 +235,7 @@ class ucp_notifications
|
|||
'type_data',
|
||||
'method_data',
|
||||
'tpl_ary',
|
||||
'subscriptions',
|
||||
];
|
||||
extract($phpbb_dispatcher->trigger_event('core.ucp_notifications_output_notification_types_modify_template_vars', compact($vars)));
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
<!-- IF notification_types.EXPLAIN --><br /> {notification_types.EXPLAIN}<!-- ENDIF -->
|
||||
</td>
|
||||
<!-- BEGIN notification_methods -->
|
||||
<td class="mark"><input type="checkbox" name="{notification_types.TYPE}_{notification_types.notification_methods.METHOD}"<!-- IF notification_types.notification_methods.AVAILABLE and notification_types.notification_methods.SUBSCRIBED --> checked="checked"<!-- ENDIF --><!-- IF not notification_types.notification_methods.AVAILABLE --> disabled="disabled"<!-- ENDIF --> /></td>
|
||||
<td class="mark"><input type="checkbox" name="{notification_types.TYPE}_{notification_types.notification_methods.METHOD}"<!-- IF notification_types.notification_methods.SUBSCRIBED --> checked="checked"<!-- ENDIF --><!-- IF not notification_types.notification_methods.AVAILABLE --> disabled="disabled"<!-- ENDIF --> /></td>
|
||||
<!-- END notification_methods -->
|
||||
</tr>
|
||||
<!-- ENDIF -->
|
||||
|
|
Loading…
Add table
Reference in a new issue