function styleguide_palette_page in Style Guide 7
Page callback: Displays color swatches.
Parameters
string|null $theme: (optional) The theme to display palettes for. Defaults to NULL, which will fallback to the default theme.
1 string reference to 'styleguide_palette_page'
- styleguide_palette_menu in styleguide_palette/
styleguide_palette.module - Implements hook_menu().
File
- styleguide_palette/
styleguide_palette.admin.inc, line 15 - Administrative page callbacks for the Style Guide Swatch module.
Code
function styleguide_palette_page($theme = NULL) {
$theme = $theme ? $theme : variable_get('theme_default', 'bartik');
return array(
'#theme' => 'styleguide_palette',
'#swatches' => styleguide_palette($theme),
);
}