function RulesURIInputEvaluator::prepare

Overrides RulesDataInputEvaluator::prepare().

Overrides RulesDataInputEvaluator::prepare

File

modules/rules_core.eval.inc, line 116

Class

RulesURIInputEvaluator
A class implementing a rules input evaluator processing URI inputs.

Code

public function prepare($uri, $var_info) {
    if (!isset($this->processor) && valid_url($uri, TRUE)) {
        // Only process if another evaluator is used or the url is not absolute.
        $this->setting = NULL;
    }
}