Hi,
i would like to know how to move the user location registration form to bio form. I've the form_id of the Bio form so y try to change this :
function location_user_form_alter($form_id, &$form) {
if ($form_id == 'user_admin_settings') {
// Add user locations settings.
_location_user_settings_form_alter($form_id, $form);
}
}
to this :
function location_user_form_alter($form_id, &$form) {
if ($form_id == bio_get_type() .'_node_form') {
// Add user locations settings.
_location_user_settings_form_alter($form_id, $form);
}
}
But this function is for admin form...
Thanks in advance !
++
Comments
Comment #1
moksa commentedOk i move location category in a new profile category. Just create a new one called "Location" and change this
to this
And it's work.
++
Comment #2
ankur commented