Sinisakrisan (Talk | contribs) (Created page with "===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 ...") |
(No difference)
|
Latest revision as of 18:42, 18 January 2013
Contents
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.
Array ( [0] => 1, [1] => Array ( 'FIELD_GENDER' => 'Male', 'FIELD_BIRTHDATE' => '', . . . )
Return
boolean (true/false)
Example
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 */ }