Override groups visibility field default value
After a successfull openid login, the drupal throw an error message related to groups visibility field. Now we are overriding this field's default value, and set it 0. Change-Id: I4df9dd887d02546ddf0e72aa5b4fa311060b84e8
This commit is contained in:
parent
ea171dc922
commit
9744c5eb28
@ -74,6 +74,10 @@ function groups_auth_form_user_register_form_alter(&$form, &$form_state) {
|
||||
// Use the email returned by Simple Registration if available.
|
||||
$form['account']['mail']['#default_value'] = $response['openid.sreg.email'];
|
||||
}
|
||||
if (isset($form['group_access'])) {
|
||||
// set default to: Public - accessible to all site users
|
||||
$form['group_access'][LANGUAGE_NONE]['#default_value'] = array(0 => 0);
|
||||
}
|
||||
} else {
|
||||
// Redirect to openstack.org profile registration page
|
||||
drupal_goto("https://www.openstack.org/join/register");
|
||||
|
Loading…
x
Reference in New Issue
Block a user