You are here

function webform_conditional_operator_string_empty in Webform 7.4

Conditional callback for checking for empty fields.

1 call to webform_conditional_operator_string_empty()
webform_conditional_operator_string_not_empty in includes/webform.conditionals.inc
Conditional callback for checking for empty fields.
1 string reference to 'webform_conditional_operator_string_empty'
_webform_conditional_operator_info in includes/webform.conditionals.inc
Implements hook_webform_conditional_operator_info().

File

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

Code

function webform_conditional_operator_string_empty($input_values, $rule_value) {
  $empty = TRUE;
  foreach ($input_values as $value) {
    if ($value !== '' && $value !== NULL && $value !== 0) {
      $empty = FALSE;
      break;
    }
  }
  return $empty;
}