function RulesDataProcessor::unchain

Return value

An array of processors keyed by processor name.

2 calls to RulesDataProcessor::unchain()
RulesDataProcessor::dependencies in includes/rules.processor.inc
Returns an array of modules which we depend on.
RulesDataProcessor::getChainSettings in includes/rules.processor.inc
Gets the settings array for this and all contained chained processors.

File

includes/rules.processor.inc, line 169

Class

RulesDataProcessor
Common base class for Rules data processors.

Code

protected function unchain() {
    $processor = $this;
    while ($processor instanceof RulesDataProcessor) {
        $processors[get_class($processor)] = $processor;
        $processor = $processor->processor;
    }
    // Note: Don't use the static context to call processors() here as we need a
    // late binding to invoke the input evaluators version, if needed.
    $return = array();
    foreach ($this->processors() as $name => $info) {
        if (isset($processors[$info['class']])) {
            $return[$name] = $processors[$info['class']];
        }
    }
    return $return;
}