function xmlsitemap_views_data in XML sitemap 2.x
Same name and namespace in other branches
- 8 xmlsitemap.views.inc \xmlsitemap_views_data()
- 7.2 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'),
],
],
];
}