mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 20:13:22 +01:00
Merge pull request #3445 from RMcGirr83/ticket/13650
[ticket/13650] Move core event
This commit is contained in:
commit
3cb1907e76
@ -115,16 +115,16 @@ class ucp_profile
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate user data on editing profile in UCP
|
||||
* Validate user data on editing registration data in UCP
|
||||
*
|
||||
* @event core.ucp_profile_info_validate_data
|
||||
* @event core.ucp_profile_reg_details_validate
|
||||
* @var array data Array with user profile data
|
||||
* @var bool submit Flag indicating if submit button has been pressed
|
||||
* @var array error Array of any generated errors
|
||||
* @since 3.1.4-RC1
|
||||
*/
|
||||
$vars = array('data', 'submit', 'error');
|
||||
extract($phpbb_dispatcher->trigger_event('core.ucp_profile_info_validate_data', compact($vars)));
|
||||
extract($phpbb_dispatcher->trigger_event('core.ucp_profile_reg_details_validate', compact($vars)));
|
||||
|
||||
if (!sizeof($error))
|
||||
{
|
||||
@ -365,6 +365,18 @@ class ucp_profile
|
||||
$error[] = 'FORM_INVALID';
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate user data on editing profile in UCP
|
||||
*
|
||||
* @event core.ucp_profile_validate_profile_info
|
||||
* @var array data Array with user profile data
|
||||
* @var bool submit Flag indicating if submit button has been pressed
|
||||
* @var array error Array of any generated errors
|
||||
* @since 3.1.4-RC1
|
||||
*/
|
||||
$vars = array('data', 'submit', 'error');
|
||||
extract($phpbb_dispatcher->trigger_event('core.ucp_profile_validate_profile_info', compact($vars)));
|
||||
|
||||
if (!sizeof($error))
|
||||
{
|
||||
$data['notify'] = $user->data['user_notify_type'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user