function theme_styleswitcher_admin_style_overview in Style Switcher 7.2
Same name and namespace in other branches
- 8.2 styleswitcher.module \theme_styleswitcher_admin_style_overview()
- 6.2 styleswitcher.admin.inc \theme_styleswitcher_admin_style_overview()
- 3.0.x styleswitcher.module \theme_styleswitcher_admin_style_overview()
Returns HTML for a style description on the styles overview page.
Parameters
array $variables: An associative array containing:
- style: A style array as returned from styleswitcher_style_load().
See also
2 theme calls to theme_styleswitcher_admin_style_overview()
- styleswitcher_admin in ./
styleswitcher.admin.inc - Page callback: Constructs a form for the Styleswitcher configuration.
- styleswitcher_config_theme in ./
styleswitcher.admin.inc - Page callback: Constructs a form for a theme-specific styles settings.
File
- ./
styleswitcher.admin.inc, line 442 - Styleswitcher configuration functionality.
Code
function theme_styleswitcher_admin_style_overview(array $variables) {
$style = $variables['style'];
$output = check_plain($style['label']);
$output .= ' <small>' . t('(Machine name: @name)', array(
'@name' => $style['name'],
)) . '</small>';
if (isset($style['path'])) {
$description = $style['path'];
}
else {
$description = t('Blank style which just removes effect of others.');
}
$output .= '<div class="description">' . $description . '</div>';
return $output;
}