function sitemap_theme in Sitemap 2.0.x
Same name and namespace in other branches
- 8.2 sitemap.module \sitemap_theme()
- 8 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',
],
];
}