function clientside_validation_valid_token in Clientside Validation 7
Validate a token during AJAX post.
Parameters
string $token: The generated validation token.
string $captcha_validate: The Captcha validation method.
string $captcha_token: A token generated from Captcha.
Return value
boolean TRUE if the token validates successfully.
1 call to clientside_validation_valid_token()
File
- ./
clientside_validation.module, line 1704 - Add client side validation to forms.
Code
function clientside_validation_valid_token($token, $captcha_validate, $captcha_token) {
return $token === clientside_validation_generate_token($captcha_validate, $captcha_token);
}