Make Location form fields available to hook_form_alter() and how to theme location fields
Changing location in form_alter can be a tiring job, mostly becuase the fileds are not available to the forms_alter . The most likely reason being that your module is called much after the location module is called . based on module weight in the system table.
This is another solution:
in your form_alter do something like this ..
function mymodule_profile_form_alter(&$form, &$form_state, $form_id){
//make a switch here for the specific form_id
$form['#after_build'][] = 'mymodule_profile_buildElements';
}
//then implement the module and make the necesary changes
function mymodule_profile_buildElements($element, &$form_state) {
}













