You are here

function logintoboggan_flip_user_email_verification in LoginToboggan 6

Same name and namespace in other branches
  1. 5 logintoboggan.module \logintoboggan_flip_user_email_verification()

Flips the value of the user_email_settings variable. This setting is less confusing when it works the opposite of it's current core behavior.

1 string reference to 'logintoboggan_flip_user_email_verification'
logintoboggan_form_alter in ./logintoboggan.module
Implementation of hook_form_alter()

File

./logintoboggan.module, line 1225
Logintoboggan Module

Code

function logintoboggan_flip_user_email_verification($form, &$form_state) {
  $value = $form_state['values']['user_email_verification'] ? FALSE : TRUE;
  variable_set('user_email_verification', $value);
}