Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By SamohtVII on
So I have groups called staff, student and admin.
When editing there profile I only want the admin account to be able to see and edit the users picture field. It doesn't really follow the same rules as other fields that I have added so in the "Manage fields" the user picture option isn't even there.
Can i make it so only admins can see and use this field?
Thanks
Comments
You can alter the for by hook
You can alter the for by hook_form_alter();
like this (only example)
Where do I put this. in
Perfect. Worked it out thanks mate.