6

What is the equivalent of hook_user with $op = 'form' in Drupal 7?
According to the documentation of hook_user, 'form' means:

form: The user account edit form is about to be displayed. The module should present the form elements it wishes to inject into the form.

But I couldn't find any equivalent hook in Drupal 7 user.api.php.
Thanks

5

hook_form_user_profile_form_alter(&$form, &$form_state) I think its what you need

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.