function logintoboggan_user_edit_validate in LoginToboggan 6
Same name and namespace in other branches
- 5 logintoboggan.module \logintoboggan_user_edit_validate()
- 7 logintoboggan.module \logintoboggan_user_edit_validate()
Custom validation function for user edit form
1 string reference to 'logintoboggan_user_edit_validate'
- logintoboggan_form_alter in ./
logintoboggan.module - Implementation of hook_form_alter()
File
- ./
logintoboggan.module, line 450 - Logintoboggan Module
Code
function logintoboggan_user_edit_validate($form, &$form_state) {
if (!empty($form_state['values']['pass'])) {
// if we're changing the password, validate it
$pass_err = logintoboggan_validate_pass($form_state['values']['pass']);
if ($pass_err) {
form_set_error('pass', $pass_err);
}
}
}