function RulesPHPDataProcessor::process

Overrides RulesDataProcessor::process().

Overrides RulesDataProcessor::process

File

modules/php.eval.inc, line 121

Class

RulesPHPDataProcessor
A data processor using PHP.

Code

public function process($value, $info, RulesState $state, RulesPlugin $element) {
    $value = isset($this->processor) ? $this->processor
        ->process($value, $info, $state, $element) : $value;
    return rules_php_eval_return($this->setting['code'], array(
        'value' => $value,
    ));
}