You are here

public function RulesDataProcessor::dependencies in Rules 7.2

Returns an array of modules which we depend on.

File

includes/rules.processor.inc, line 156
Contains classes for data processing.

Class

RulesDataProcessor
Common base class for Rules data processors.

Code

public function dependencies() {
  $used_processor_info = array_intersect_key($this
    ->processors(), $this
    ->unchain());
  $modules = array();
  foreach ($used_processor_info as $name => $info) {
    $modules[] = $info['module'];
  }
  return array_filter($modules);
}