mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-19 15:17:16 +01:00
[ticket/16411] Add vars to notification core events
PHPBB3-16411
This commit is contained in:
parent
0fa0013a69
commit
443b931b36
@ -70,6 +70,7 @@ class ucp_notifications
|
|||||||
* @var array type_data The notification type data
|
* @var array type_data The notification type data
|
||||||
* @var array method_data The notification method data
|
* @var array method_data The notification method data
|
||||||
* @var bool is_set_notify The notification is set or not
|
* @var bool is_set_notify The notification is set or not
|
||||||
|
* @var array subscriptions The subscriptions data
|
||||||
*
|
*
|
||||||
* @since 3.2.10-RC1
|
* @since 3.2.10-RC1
|
||||||
*/
|
*/
|
||||||
@ -77,6 +78,7 @@ class ucp_notifications
|
|||||||
'type_data',
|
'type_data',
|
||||||
'method_data',
|
'method_data',
|
||||||
'is_set_notify',
|
'is_set_notify',
|
||||||
|
'subscriptions',
|
||||||
];
|
];
|
||||||
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)));
|
||||||
|
|
||||||
@ -225,6 +227,7 @@ class ucp_notifications
|
|||||||
* @var array type_data The notification type data
|
* @var array type_data The notification type data
|
||||||
* @var array method_data The notification method data
|
* @var array method_data The notification method data
|
||||||
* @var array tpl_ary The template variables
|
* @var array tpl_ary The template variables
|
||||||
|
* @var array subscriptions The subscriptions data
|
||||||
*
|
*
|
||||||
* @since 3.2.10-RC1
|
* @since 3.2.10-RC1
|
||||||
*/
|
*/
|
||||||
@ -232,6 +235,7 @@ class ucp_notifications
|
|||||||
'type_data',
|
'type_data',
|
||||||
'method_data',
|
'method_data',
|
||||||
'tpl_ary',
|
'tpl_ary',
|
||||||
|
'subscriptions',
|
||||||
];
|
];
|
||||||
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)));
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
<!-- IF notification_types.EXPLAIN --><br /> {notification_types.EXPLAIN}<!-- ENDIF -->
|
<!-- IF notification_types.EXPLAIN --><br /> {notification_types.EXPLAIN}<!-- ENDIF -->
|
||||||
</td>
|
</td>
|
||||||
<!-- BEGIN notification_methods -->
|
<!-- 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 -->
|
<!-- END notification_methods -->
|
||||||
</tr>
|
</tr>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user