You are here

public function RulesConditionalPredicateElement::dependencies in Conditional Rules 7

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

Calculates an array of required modules.

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

Overrides RulesConditionalElement::dependencies

File

includes/rules_conditional.core.inc, line 478
Conditional Rules framework implementation.

Class

RulesConditionalPredicateElement
Base conditional element that uses a predicate.

Code

public function dependencies() {
  $modules = array_flip(parent::dependencies());
  if (isset($this->predicate)) {
    $modules += array_flip($this->predicate
      ->dependencies());
  }
  return array_keys($modules);
}