function theme_views_maintenance_view_storage in Views Maintenance 6
Same name and namespace in other branches
- 7 theme/theme.inc \theme_views_maintenance_view_storage()
Returns HTML for view storage type.
Parameters
string $type:
Return value
string
1 call to theme_views_maintenance_view_storage()
- template_preprocess_views_maintenance_views_table in theme/
theme.inc - Prepares views info for output and includes required CSS/JS.
File
- theme/
theme.inc, line 236 - Preprocessing and theming functions for Views Maintenance.
Code
function theme_views_maintenance_view_storage($type = NULL) {
// Convert storage type to our format and add class to highlight it
switch ($type) {
case t('Default'):
$storage = t('In code');
$class = "ok";
break;
case t('Overridden'):
$storage = $type;
$class = "error";
break;
default:
//t('Normal')
$storage = t('Database');
$class = "warning";
break;
}
$output = '<span class="' . $class . '">' . $storage . '</span>';
return $output;
}