function RulesPlugin::dependencies
Calculates an array of required modules.
You can use $this->dependencies to access dependencies for saved configurations.
5 calls to RulesPlugin::dependencies()
- RulesAbstractPlugin::dependencies in includes/
rules.core.inc - Calculates an array of required modules.
- RulesContainerPlugin::dependencies in includes/
rules.core.inc - Calculates an array of required modules.
- RulesPlugin::integrityCheck in includes/
rules.core.inc - Makes sure the plugin is configured right.
- RulesPlugin::returnExport in includes/
rules.core.inc - Finalizes the configuration export.
- RulesPlugin::save in includes/
rules.core.inc - Saves the configuration to the database.
2 methods override RulesPlugin::dependencies()
- RulesAbstractPlugin::dependencies in includes/
rules.core.inc - Calculates an array of required modules.
- RulesContainerPlugin::dependencies in includes/
rules.core.inc - Calculates an array of required modules.
File
-
includes/
rules.core.inc, line 802
Class
- RulesPlugin
- Base class for rules plugins.
Code
public function dependencies() {
$this->processSettings();
$modules = isset($this->itemInfo['module']) && $this->itemInfo['module'] != 'rules' ? array(
$this->itemInfo['module'] => 1,
) : array();
foreach ($this->pluginParameterInfo() as $name => $info) {
if (isset($this->settings[$name . ':process']) && $this->settings[$name . ':process'] instanceof RulesDataProcessor) {
$modules += array_flip($this->settings[$name . ':process']
->dependencies());
}
}
return array_keys($modules);
}