Description

This event trigger when getting current logined user info by field code (e.g. FIELD_GENDER, FIELD_BIRTHDATE, etc). The plugin may manipulate the obtained field value provided extended user info configuration is enabled.


Params

An array with two items; fieldcode and fieldvalue.

{code}
Array
(
[0] => FIELD_GENDER,
[1] => Male (corresponding value of the fieldcode passed by reference)
)
{/code}

Examples

{code}
function onGetUserInfo( $arrItems ) 
{
$arrGenderShortForm = array('male' => 'M', 'female' => 'F');

$arrItems[1] = $arrGenderShortForm[$arrItems[1]];
 
return true;
}

Result:
Field Value changed from "Male" to "M"
{/code}

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW