You are here

function webform_conditional_operator_string_ends_with in Webform 7.4

Conditional callback for string comparisons.

1 string reference to 'webform_conditional_operator_string_ends_with'
_webform_conditional_operator_info in includes/webform.conditionals.inc
Implements hook_webform_conditional_operator_info().

File

includes/webform.conditionals.inc, line 1595
Form elements and menu callbacks to provide conditional handling in Webform.

Code

function webform_conditional_operator_string_ends_with($input_values, $rule_value) {
  foreach ($input_values as $value) {
    if (strripos($value, $rule_value) === strlen($value) - strlen($rule_value)) {
      return TRUE;
    }
  }
  return FALSE;
}