You are here

function styleguide_palette_theme in Style Guide 7

Implements hook_theme().

File

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

Code

function styleguide_palette_theme($existing, $type, $theme, $path) {
  return array(
    'styleguide_palette' => array(
      'variables' => array(
        'swatches' => array(),
      ),
      'path' => "{$path}/templates",
      'template' => 'styleguide-palette',
    ),
    'styleguide_palette_swatch' => array(
      'variables' => array(
        'name' => NULL,
        'description' => '',
        'hex' => NULL,
      ),
      'path' => "{$path}/templates",
      'template' => 'styleguide-palette-swatch',
    ),
  );
}