function features_get_module_status in Features 6
Same name and namespace in other branches
- 7.2 features.module \features_get_module_status()
- 7 features.module \features_get_module_status()
Simple wrapper returns the status of a module.
1 call to features_get_module_status()
- features_admin_components in ./
features.admin.inc - Display the components of a feature.
File
- ./
features.module, line 620 - Module file for the features module, which enables the capture and management of features in Drupal. A feature is a collection of Drupal entities which taken together statisfy a certain use-case.
Code
function features_get_module_status($module) {
if (module_exists($module)) {
return FEATURES_MODULE_ENABLED;
}
else {
if (features_get_modules($module)) {
return FEATURES_MODULE_DISABLED;
}
else {
return FEATURES_MODULE_MISSING;
}
}
}