You are here

function fapi_validation_rule_match_field in Form API Validation 7.2

Same name and namespace in other branches
  1. 7 fapi_validation.module \fapi_validation_rule_match_field()
1 string reference to 'fapi_validation_rule_match_field'
fapi_validation_fapi_validation_rules in ./fapi_validation.module
Implementation of hook_fapi_validation_rules

File

./fapi_validation.module, line 348

Code

function fapi_validation_rule_match_field($value, $params, $element, $form_state) {
  return isset($form_state['values'][$params[0]]) && $value == $form_state['values'][$params[0]];
}