Question about form field
Jamroom Developers
It is possible - you'd need to add a 'form_display' listener to your custom module and code that to detect the profile/settings forum then insert the field. Plenty of Jamroom modules do this. Here's the listener code from the Birthday module so maybe you can use that as a guide -
function jrBirthday_form_display_listener($_data, $_user, $_conf, $_args, $event)
{
if (isset($_data['form_view']) && $_data['form_view'] == 'jrUser/account') {
$_ln = jrUser_load_lang_strings();
$_tm = array(
'name' => 'user_birthdate',
'label' => $_ln['jrBirthday'][1],
'sublabel' => $_ln['jrBirthday'][3],
'help' => $_ln['jrBirthday'][2],
'type' => 'date_birthday',
'validate' => 'date_birthday',
'exclude_year' => true,
'required' => false,
'form_designer' => false
);
jrCore_form_field_create($_tm);
}
return $_data;
}
hth