You are here

function sitemap_theme in Sitemap 8.2

Same name and namespace in other branches
  1. 8 sitemap.module \sitemap_theme()
  2. 2.0.x sitemap.module \sitemap_theme()

Implements hook_theme().

File

./sitemap.module, line 16
Provides sitemap functionality.

Code

function sitemap_theme() {
  return [
    'sitemap' => [
      'variables' => [
        'message' => NULL,
        'sitemap_items' => [],
      ],
    ],
    'sitemap_item' => [
      'variables' => [
        'title' => '',
        'content' => [],
        'sitemap' => '',
      ],
      'file' => 'sitemap.theme.inc',
    ],
    'sitemap_taxonomy_term' => [
      'variables' => [
        'name' => '',
        'show_link' => FALSE,
        'url' => '',
        'show_count' => FALSE,
        'count' => '',
        'show_feed' => FALSE,
        'feed' => '',
        'feed_icon' => '',
      ],
      'file' => 'sitemap.theme.inc',
    ],
    'sitemap_frontpage_item' => [
      'variables' => [
        'text' => '',
        'url' => '',
        'feed' => '',
        'feed_icon' => '',
      ],
      'file' => 'sitemap.theme.inc',
    ],
    'menu__sitemap' => [
      'base hook' => 'menu',
    ],
  ];
}