I need to set admin approval for a particular role. I am using auto assign module to provide user to choose role on registration form.

authenticated users: Do not need admin approval

$form_state['values']['status'] = 1;

$form["account"]["status"]["#default_value"] = FALSE; 

Try to use above line on validate function but not getting any success.

1 Answer 1


I have created a module for this, which addresses my question. It can be found at Select registration roles. Some more details about it (from its project page):

The Select Registration Roles module adds a role field on the user registration form. Admin can configure roles to be displayed on the registration form as, and can set roles which require admin approval.

Here is a screenprint of it also:

enter image description here

  • nice! Please check my edit of your answer (now that it is a full project). If you don't like the edit, just perform a rollback, ok? Jul 25, 2016 at 8:14
  • Thank you @Pierre.Vriens. Yes you are right. Now it is a full project. Thank you edit the answer.
    Jul 25, 2016 at 8:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.