function RulesTokenEvaluator::prepare

Overrides RulesDataInputEvaluator::prepare().

Overrides RulesDataInputEvaluator::prepare

File

modules/system.eval.inc, line 186

Class

RulesTokenEvaluator
A class implementing a rules input evaluator processing tokens.

Code

public function prepare($text, $var_info) {
    $text = is_array($text) ? implode('', $text) : $text;
    // Skip this evaluator if there are no tokens.
    $this->setting = token_scan($text) ? TRUE : NULL;
}