In my user profile, I have some fields I want to alter. For my regular fields I use:
mymodule_form_alter(&$form, &$form_state, $form_id)
That works, but inside the $form there are some fields missing. Like for example the Timezone settings and the Private Messages. So fields from another module (like Private Messages) or standard settings. How can I alter those?
I tried a custom template file for the user profile and there I have access to those fields inside the $form. But I shouldn't altern them in a template file, right? So what would be the right approach for this?