So I'm trying to add a field to the user account form. I figured out, by sheer guesswork, that the first fieldset is $form['account'], but I'd like to know the names and weights of the other fields in the form. I thought Devel could help me out with this, but I'll be damned if I can figure out how to get the info.

Any help?

Comments

d_l’s picture

Firefox has a useful feature to inspect form elements ..... but as I recall if you have not installed Firefox with advanced options selected you may not see it under Tools ..

If you don't have Firefox, install it and install all Web Developer options.

If you do have Firefox, uninstall it first, then reinstall selecting advanced options and tick DOM Inspector and Web Developer

then read here on how I got the form details in the new user registration page ..

http://drupal.org/node/287608

phl3tch’s picture

I've got Web Deveoper (and Firebug) installed. Drupal doesn't assign ids to those fieldsets.

In any event, I found my answer a short while after posting. Quite simple, of course: just look at user.module. Duh.