You are here

public function RuleConditionSet::dependencies in Conditional Rules 7

Same name and namespace in other branches
  1. 8 includes/rules_conditional.plugin.inc \RuleConditionSet::dependencies()

Calculates an array of required modules.

You can use $this->dependencies to access dependencies for saved configurations.

Overrides RulesContainerPlugin::dependencies

File

includes/rules_conditional.plugin.inc, line 533
Rules plugin implementation.

Class

RuleConditionSet
Rule as condition set.

Code

public function dependencies() {
  $modules = array(
    'rules_conditional' => 1,
  );
  $modules += array_flip($this->actions
    ->dependencies());
  $modules += array_flip(parent::dependencies());
  return array_keys($modules);
}