Modifying Profile fields in profile settings
Jamroom Developers
1.Register event listener in jrModule_init() funtion
jrCore_register_event_listener('jrCore', 'form_display', 'jrModule_profile_form_display');
2.function jrModule_profile_form_display($_data, $_user, $_conf, $_args, $event)
{
switch ($_data['form_view']) {
case 'jrProfile/settings':
// Add your field.
$_tmp = array(
'name' => 'profile_field_name',
'label' => 'Field Label',
'type' => 'text',
'help' => 'Help Text',
'required' => true
);
jrCore_form_field_create($_tmp);
break;
}
return $_data;
}
Done