You are here

function webform_conditional_operator_datetime_before in Webform 7.4

Conditional callback for date and time comparisons.

1 call to webform_conditional_operator_datetime_before()
webform_conditional_operator_datetime_before_equal in includes/webform.conditionals.inc
Conditional callback for date and time comparisons.
1 string reference to 'webform_conditional_operator_datetime_before'
_webform_conditional_operator_info in includes/webform.conditionals.inc
Implements hook_webform_conditional_operator_info().

File

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

Code

function webform_conditional_operator_datetime_before($input_values, $rule_value) {
  $input_values = webform_conditional_value_datetime($input_values);
  return empty($input_values) ? FALSE : webform_strtotime($input_values[0]) < webform_strtotime($rule_value);
}