function RulesI18nStringEvaluator::prepare

Overrides RulesDataInputEvaluator::prepare().

Overrides RulesDataInputEvaluator::prepare

File

rules_i18n/rules_i18n.rules.inc, line 140

Class

RulesI18nStringEvaluator
A class implementing a rules input evaluator processing tokens.

Code

public function prepare($text, $var_info, $param_info = NULL) {
    if (!empty($param_info['translatable'])) {
        $this->setting = TRUE;
    }
    else {
        // Else, skip this evaluator.
        $this->setting = NULL;
    }
}