diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2014-07-16 16:15:30 +0200 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2014-07-16 16:15:30 +0200 |
| commit | cd5fbd52c21fbe855622ce96b91e7b8e54fddde0 (patch) | |
| tree | 1c5844333922e37f3e4c4a47a8e9d459c3d7b6c0 | |
| parent | 496b34cd96fb520f98b5fb5d93f1861359b91726 (diff) | |
| parent | fe02caa8e0c39ed52bcf82cdbe373832b07267d7 (diff) | |
| download | forums-cd5fbd52c21fbe855622ce96b91e7b8e54fddde0.tar forums-cd5fbd52c21fbe855622ce96b91e7b8e54fddde0.tar.gz forums-cd5fbd52c21fbe855622ce96b91e7b8e54fddde0.tar.bz2 forums-cd5fbd52c21fbe855622ce96b91e7b8e54fddde0.tar.xz forums-cd5fbd52c21fbe855622ce96b91e7b8e54fddde0.zip | |
Merge pull request #2709 from rxu/ticket/12828
[ticket/12828] Add ucp_prefs.php common core event
* rxu/ticket/12828:
[ticket/12828] Add ucp_prefs.php common core event
| -rw-r--r-- | phpBB/includes/ucp/ucp_prefs.php | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/phpBB/includes/ucp/ucp_prefs.php b/phpBB/includes/ucp/ucp_prefs.php index 35bb844170..df1e722fa4 100644 --- a/phpBB/includes/ucp/ucp_prefs.php +++ b/phpBB/includes/ucp/ucp_prefs.php @@ -115,7 +115,7 @@ class ucp_prefs * * @event core.ucp_prefs_personal_update_data * @var array data Submitted display options data - * @var array sql_ary Display options data we udpate + * @var array sql_ary Display options data we update * @since 3.1.0-a1 */ $vars = array('data', 'sql_ary'); @@ -294,7 +294,7 @@ class ucp_prefs * * @event core.ucp_prefs_view_update_data * @var array data Submitted display options data - * @var array sql_ary Display options data we udpate + * @var array sql_ary Display options data we update * @since 3.1.0-a1 */ $vars = array('data', 'sql_ary'); @@ -420,7 +420,7 @@ class ucp_prefs * * @event core.ucp_prefs_post_update_data * @var array data Submitted display options data - * @var array sql_ary Display options data we udpate + * @var array sql_ary Display options data we update * @since 3.1.0-a1 */ $vars = array('data', 'sql_ary'); @@ -451,6 +451,24 @@ class ucp_prefs break; } + /** + * Modify UCP preferences data before the page load + * + * @event core.ucp_prefs_modify_common + * @var array data Array with current/submitted UCP options data + * @var array error Errors data + * @var string mode UCP prefs operation mode + * @var string s_hidden_fields Hidden fields data + * @since 3.1.0-RC3 + */ + $vars = array( + 'data', + 'error', + 'mode', + 's_hidden_fields', + ); + extract($phpbb_dispatcher->trigger_event('core.ucp_prefs_modify_common', compact($vars))); + $template->assign_vars(array( 'L_TITLE' => $user->lang['UCP_PREFS_' . strtoupper($mode)], |
