You are here

function styleguide_theme in Style Guide 8

Same name and namespace in other branches
  1. 6 styleguide.module \styleguide_theme()
  2. 7 styleguide.module \styleguide_theme()
  3. 2.x styleguide.module \styleguide_theme()

Implements hook_theme().

File

./styleguide.module, line 38
The Styleguide module.

Code

function styleguide_theme($existing, $type, $theme, $path) {
  $themes = [
    'styleguide_header' => [
      'variables' => [
        'theme_info' => [],
      ],
      'template' => 'styleguide-header',
    ],
    'styleguide_links' => [
      'variables' => [
        'items' => [],
      ],
      'template' => 'styleguide-links',
    ],
    'styleguide_item' => [
      'variables' => [
        'key' => NULL,
        'item' => [],
        'content' => NULL,
      ],
      'template' => 'styleguide-item',
    ],
    'styleguide_content' => [
      'variables' => [
        'content' => NULL,
      ],
      'template' => 'styleguide-content',
    ],
  ];
  return $themes;
}