function theme_hosting_feature_dependencies in Hosting 7.4
Same name and namespace in other branches
- 6.2 hosting.features.inc \theme_hosting_feature_dependencies()
- 7.3 hosting.features.inc \theme_hosting_feature_dependencies()
Theme function to display Hosting feature dependencies.
1 theme call to theme_hosting_feature_dependencies()
- hosting_features_form in ./
hosting.features.inc - The Hosting features form.
File
- ./
hosting.features.inc, line 353 - Include for functionality related to Hosting module features.
Code
function theme_hosting_feature_dependencies($vars) {
$return = "<div class=\"admin-required\">{$vars['prefix']}:";
$last = end($vars['dependencies']);
reset($vars['dependencies']);
foreach ($vars['dependencies'] as $module => $require) {
$return .= ' ' . $vars['features'][$require]['title'];
$enabled = $vars['features'][$require]['enabled'] ? 'enabled' : 'disabled';
$return .= " (<span class=\"admin-{$enabled}\">";
$return .= $enabled;
$return .= '</span>)';
$return .= $require == $last ? '.</div>' : ',';
}
return $return;
}