function logintoboggan_flip_user_email_verification in LoginToboggan 5
Same name and namespace in other branches
- 6 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.
Parameters
$form_id ID of the submitted form.:
$form_values Submitted form values.:
File
- ./
logintoboggan.module, line 1080 - Logintoboggan Module
Code
function logintoboggan_flip_user_email_verification($form_id, $form_values) {
$value = $form_values['user_email_verification'] ? FALSE : TRUE;
variable_set('user_email_verification', $value);
}