Is it possible to alter $form_state before it is passed to user_profile_form_submit? I have a form posting updates to the user account.
The problem is I need to add some more data to the post object before user_profile_form_submit gets a hold of it.

Is this possible in Drupal 7?
There many ways to alter the $form_state values. It would be nice if we know what you wanna change so that we can say the best way to do it. Any way the following hooks can help.


hook_form_alter
hook_validate
hook_form_submit

You can have your own submit function either by overriding the $form['#submit'] values in hook_form_alter or add one to modify the values.