0

Basically I don't want to have fill out all the required fields that I have added to a user when I am adding a user via admin/people/create. In Drupal 6 there was an option to not even show those fields when the admin makes a user. I have looked around for that but have failed to find it in drupal 7. I suppose I could do a hook_form_alter but I was hoping there might be something already made that I can drop in.

I was using content profile in D6 for this and it has become profile2 for D7. Since posting I have found this issue which states that a module needs to be made in order to have that same type of option.

1
  • Well, hook_form_alter() is the fastest and most reliable solution. It does not depend on module update/upgrade, and it always works. – Zydrunas Tamasauskas Apr 13 '12 at 7:17
1

On each of the field settings for user fields, there is an option "Display on user registration form.". Just uncheck it.

3
  • Thats no good. It must show for users when they register, but not for when an admin signs up new accounts through the page I referenced. – jdwfly Nov 14 '11 at 17:22
  • You said you recall being able to do this in D6, however nothing I can think of did this, unless you are referring to the field level permissions. If so, these did not make it into the Fields module for D7 and therefore this functionality lies in The Field Permissions module. drupal.org/project/field_permissions – user842 Nov 14 '11 at 17:33
  • It's part of the content profile module, but it doesn't seem to have made into profile2 which is what content profile became on d7. – jdwfly Nov 14 '11 at 21:07
1

you could use a css to hide the fields for the admin. The css_injector module would be a handy tool for that and you could restrict the css to "#overlay=user/*/edit".

A hook_form_alter would be a more robust solution.

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.