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.