function theme_features_module_status in Features 6
Same name and namespace in other branches
- 7.2 theme/theme.inc \theme_features_module_status()
- 7 theme/theme.inc \theme_features_module_status()
Themes a module status display.
2 theme calls to theme_features_module_status()
- features_admin_form in ./
features.admin.inc - admin/build/features page callback.
- template_preprocess_features_admin_components in theme/
theme.inc - Display feature component info
File
- theme/
theme.inc, line 125
Code
function theme_features_module_status($status, $module = NULL) {
switch ($status) {
case FEATURES_MODULE_ENABLED:
$text = !empty($module) ? $module : t('Enabled');
return "<span class='admin-enabled'>{$text}</span>";
case FEATURES_MODULE_DISABLED:
$text = !empty($module) ? $module : t('Disabled');
return "<span class='admin-disabled'>{$text}</span>";
case FEATURES_MODULE_MISSING:
$text = !empty($module) ? $module : t('Missing');
return "<span class='admin-missing'>{$text}</span>";
}
}