You are here

function styleguide_palette_styleguide in Style Guide 7

Implements hook_styleguide().

Adds the color palette to the style guide page.

File

styleguide_palette/styleguide_palette.module, line 92
Stores and displays color palettes and swatches.

Code

function styleguide_palette_styleguide() {
  global $theme;
  $items['color_palette'] = array(
    'title' => t('Color palette'),
    'theme' => 'styleguide_palette',
    'variables' => array(
      'swatches' => styleguide_palette($theme),
    ),
    'group' => t('Branding'),
  );
  return $items;
}