By couloir007 on
How do I make it so that after a user submits the user_edit form, updating their info, they are brought back to the edit form? For instance, user 2 is at "?q=user/2/edit", after they post, form action="?q=user/2/edit", they end up back at "?q=user/2/edit" and not "?q=user/2". I've tried "drupal_redirect_form($form, $redirect = 'user/2/edit');", but all this does is set a redirecting perpetual loop.
Sean
Comments
Basically, how do I make
Basically, how do I make "$form_state['redirect'] = 'user/'. $account->uid;" below read "$form_state['redirect'] = 'user/'. $account->uid;.'/edit'" without editing the user module? If I can't, is it bad practice to edit the module? Can I override the module function?
Found the answer at
Found the answer at http://www.ventanazul.com/webzine/articles/redirect-user-after-submit-fo.... In a custom module:
Note:
Finding answers to simple questions in Drupal is like pulling teeth.