You are here

function styleguide_theme in Style Guide 6

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

Implements hook_theme().

File

./styleguide.module, line 41

Code

function styleguide_theme() {
  $themes = array(
    'styleguide_header' => array(
      'variables' => array(
        'theme_info' => array(),
      ),
    ),
    'styleguide_links' => array(
      'variables' => array(
        'items' => array(),
      ),
    ),
    'styleguide_item' => array(
      'variables' => array(
        'key' => NULL,
        'item' => array(),
        'content' => NULL,
      ),
    ),
    'styleguide_content' => array(
      'variables' => array(
        'content' => NULL,
      ),
    ),
  );
  foreach ($themes as $theme => $data) {
    $themes[$theme]['file'] = 'styleguide.theme.inc';
  }
  return $themes;
}