You are here

function sitemap_theme in Sitemap 8

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

Implements hook_theme().

File

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

Code

function sitemap_theme() {
  return [
    'sitemap' => [
      'variables' => [
        'message' => NULL,
        'rss_legend' => NULL,
        'sitemap_items' => [],
        'additional' => NULL,
      ],
      'file' => 'sitemap.theme.inc',
    ],
    'sitemap_feed_icon' => [
      'variables' => [
        'url' => NULL,
        'name' => NULL,
        'type' => 'node',
      ],
    ],
    'sitemap_menu_link' => [
      'render element' => 'element',
      'function' => 'theme_sitemap_menu_link',
      'file' => 'sitemap.theme.inc',
    ],
    'sitemap_menu_tree' => [
      'render element' => 'tree',
      'function' => 'theme_sitemap_menu_tree',
      'file' => 'sitemap.theme.inc',
    ],
  ];
}