I'm trying to see if there's an example of a form that isn’t in the admin area and is used to update user details.
Is it possible to create this type of form? Where can I find such an example?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityI'm trying to see if there's an example of a form that isn’t in the admin area and is used to update user details.
Is it possible to create this type of form? Where can I find such an example?
Look at the Drupal core user module, is generates the forms for account editing. Specifically, user_profile_form()
, user_account_form()
, & user_profile_form_submit()
will give you an example of an user-accessible form that updates a user account.