function RulesDateInputEvaluator::prepare

Overrides RulesDataInputEvaluator::prepare().

Overrides RulesDataInputEvaluator::prepare

File

modules/rules_core.eval.inc, line 75

Class

RulesDateInputEvaluator
A class implementing a rules input evaluator processing date input.

Code

public function prepare($text, $var_info) {
    if (is_numeric($text)) {
        // Let rules skip this input evaluators in case it's already a timestamp.
        $this->setting = NULL;
    }
}