function logintoboggan_user_edit_validate in LoginToboggan 5
Same name and namespace in other branches
- 6 logintoboggan.module \logintoboggan_user_edit_validate()
- 7 logintoboggan.module \logintoboggan_user_edit_validate()
Custom validation function for user edit form
File
- ./
logintoboggan.module, line 435 - Logintoboggan Module
Code
function logintoboggan_user_edit_validate($form_id, $form_values) {
if (!empty($form_values['pass'])) {
// if we're changing the password, validate it
$pass_err = logintoboggan_validate_pass($form_values['pass']);
if ($pass_err) {
form_set_error('pass', $pass_err);
}
}
}