This module was not really designed for building custom validations. There are other modules intended for such purposes. But, if you really wanted to, you could do something like:
hook_ajax_validate_pass($form, $form_state, $data, &$pass) {
// Cause validation to fail
$pass = FALSE;
// Cause validation to succeed
$pass = TRUE;
// Return
return TRUE;
}
Comments
Comment #1
brendoncrawford commentedThis module was not really designed for building custom validations. There are other modules intended for such purposes. But, if you really wanted to, you could do something like: