Description
This event will be triggered before the profile update operation is performed. The plugin can decide whether to proceed with the profile update operation by returning true (proceed)/false (stop).
Params
An array with two items, user id and an array of available fieldcodes as array index pointing to the corresponding field value.
{code}
Array
(
[0] => 1,
[1] => Array (
'FIELD_GENDER' => 'Male',
'FIELD_BIRTHDATE' => '',
.
.
.
)
{/code}
Return
boolean (true/false)
Examples
{code}
function onBeforeProfileUpdate( $arrItems )
{
/*
* perform your required pre-requisite handler here
* return true if you want the profile to continue the update operation
* return false to stop the update operation
*/
}
{/code}