function xmlsitemap_views_data in XML sitemap 8
Same name and namespace in other branches
- 7.2 xmlsitemap.views.inc \xmlsitemap_views_data()
- 2.x xmlsitemap.views.inc \xmlsitemap_views_data()
Implements hook_views_data().
File
- ./
xmlsitemap.views.inc, line 11 - Views integration for xmlsitemap.
Code
function xmlsitemap_views_data() {
return [
'xmlsitemap' => [
'table' => [
'group' => t('XML Sitemap'),
'provider' => 'xmlsitemap',
],
'id' => [
'title' => t('ID'),
],
'type' => [
'title' => t('Type'),
],
'subtype' => [
'title' => t('Sub-type'),
],
'loc' => [
'title' => t('URL'),
],
'language' => [
'title' => t('Language'),
],
'access' => [
'title' => t('Access'),
],
'status' => [
'title' => t('Status'),
'filter' => [
'id' => 'boolean',
'label' => t('Status'),
],
],
'status_override' => [
'title' => t('Status Override'),
'filter' => [
'id' => 'boolean',
'label' => t('Status Override'),
],
],
'lastmod' => [
'title' => t('Last modified'),
],
'priority' => [
'title' => t('Priority'),
],
'priority_override' => [
'title' => t('Priority Override'),
],
'changefreq' => [
'title' => t('Change Frequency'),
],
'changecount' => [
'title' => t('Change Count'),
],
],
];
}