function dependencies_features_rebuild in Features 6
Same name and namespace in other branches
- 7.2 includes/features.features.inc \dependencies_features_rebuild()
- 7 includes/features.features.inc \dependencies_features_rebuild()
Implementation of hook_features_rebuild(). Ensure that all of a feature's dependencies are enabled.
1 call to dependencies_features_rebuild()
- dependencies_features_revert in includes/
features.features.inc - Implementation of hook_features_revert().
File
- includes/
features.features.inc, line 57
Code
function dependencies_features_rebuild($module) {
$feature = features_get_features($module);
if (!empty($feature->info['dependencies'])) {
$install = array();
foreach ($feature->info['dependencies'] as $dependency) {
if (!module_exists($dependency)) {
$install[] = $dependency;
}
}
if (!empty($install)) {
features_install_modules($install);
}
}
}