Hey all,

I've looked through many posts, and done quite a few google searches on how to remove fields from the user account edit area (where one can upload profile pictures, change password.. etc.) they all basically spin one in circles .

Anyhow, I need to remove many fields that currently display in there because I don't want standard users for example to have the option to change the site theme, or username.. etc

How would I go about removing fields?

Jon.

Comments

roopletheme’s picture

The two examples that you give (change theme and change username) are actually easy to turn off using standard access control options. From yoursite/admin/user/access, you'll find an option under the System category to allow users to select a different theme. Under the User category, you'll find an option to allow users to change their own username. Enable or disable the features for each role as you wish. Create new roles to split up the functionality if you like.

But if you do run across a field that you want to remove that is not manageable from some admin menu, you would want to write a module that calls hook_form_alter. I think that there is an example of removing a field somewhere in this article.