function _xmlsitemap_field_data in XML sitemap 7.2
Field information.
Return value
array Returns the field information for four fields (status, status override, priority, priority override) that can be shown in views. These are always the same no matter what entity type the view is showing.
1 call to _xmlsitemap_field_data()
- xmlsitemap_views_data in ./
xmlsitemap.views.inc - Implements hook_views_data().
File
- ./
xmlsitemap.views.inc, line 72 - Provides information about the data being made available for views.
Code
function _xmlsitemap_field_data() {
$field_data = array();
$field_data['status'] = array(
'title' => t('Inclusion'),
'help' => t('Is this included in the XML sitemap?'),
'field' => array(
'handler' => 'views_handler_field_boolean',
),
'sort' => array(
'handler' => 'views_handler_sort',
),
'filter' => array(
'handler' => 'views_handler_filter_boolean_operator',
),
);
$field_data['status_override'] = array(
'title' => t('Inclusion override'),
'help' => t('Was the XML sitemap inclusion overridden, or left as the default?'),
'field' => array(
'handler' => 'views_handler_field_boolean',
),
'sort' => array(
'handler' => 'views_handler_sort',
),
'filter' => array(
'handler' => 'views_handler_filter_boolean_operator',
),
);
$field_data['priority'] = array(
'title' => t('Priority'),
'help' => t('The XML sitemap priority.'),
'field' => array(
'handler' => 'views_handler_field_numeric',
'click sortable' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
),
);
$field_data['priority_override'] = array(
'title' => t('Priority override'),
'help' => t('Was the XML sitemap priority overridden, or left as the default?'),
'field' => array(
'handler' => 'views_handler_field_boolean',
),
'sort' => array(
'handler' => 'views_handler_sort',
),
'filter' => array(
'handler' => 'views_handler_filter_boolean_operator',
),
);
return $field_data;
}