views_xml_backend.views.inc in Views XML Backend 8
Same filename and directory in other branches
Views hooks for views_xml_backend.
File
views_xml_backend.views.incView source
<?php
/**
* @file
* Views hooks for views_xml_backend.
*/
/**
* Implements hook_views_data().
*/
function views_xml_backend_views_data() {
$data = [];
$data['views_xml_backend']['table']['group'] = t('XML');
$data['views_xml_backend']['table']['base'] = [
'title' => t('XML'),
'help' => t('Queries an XML file.'),
'query_id' => 'views_xml_backend',
];
$data['views_xml_backend']['text'] = [
'title' => t('XML Text'),
'help' => t('Text in the XML file.'),
'field' => [
'id' => 'views_xml_backend_standard',
],
'argument' => [
'id' => 'views_xml_backend_standard',
],
'filter' => [
'id' => 'views_xml_backend_standard',
],
'sort' => [
'id' => 'views_xml_backend_standard',
],
];
$data['views_xml_backend']['numeric'] = [
'title' => t('XML Number'),
'help' => t('A numeric value in the XML file.'),
'field' => [
'id' => 'views_xml_backend_standard',
],
'argument' => [
'id' => 'views_xml_backend_numeric',
],
'filter' => [
'id' => 'views_xml_backend_numeric',
],
'sort' => [
'id' => 'views_xml_backend_numeric',
],
];
$data['views_xml_backend']['date'] = [
'title' => t('XML Date'),
'help' => t('Date in the XML file.'),
'field' => [
'id' => 'views_xml_backend_date',
],
'argument' => [
'id' => 'views_xml_backend_date',
],
'filter' => [
'id' => 'views_xml_backend_date',
],
'sort' => [
'id' => 'views_xml_backend_date',
],
];
$data['views_xml_backend']['date_year'] = [
'title' => t('XML Year'),
'help' => t('Year in the XML file.'),
'argument' => [
'id' => 'views_xml_backend_date_year',
],
];
$data['views_xml_backend']['date_month'] = [
'title' => t('XML Month'),
'help' => t('Month in the XML file.'),
'argument' => [
'id' => 'views_xml_backend_date_month',
],
];
$data['views_xml_backend']['date_day'] = [
'title' => t('XML Day'),
'help' => t('Day in the XML file.'),
'argument' => [
'id' => 'views_xml_backend_date_day',
],
];
$data['views_xml_backend']['markup'] = [
'title' => t('HTML Markup'),
'help' => t('HTML text in the XML file.'),
'field' => [
'id' => 'views_xml_backend_markup',
],
];
$data['views_xml_backend']['passthrough'] = [
'title' => t('Pass through'),
'help' => t('This argument handler does not filter any values. It can be used to pass in values from an argument into token replacements.'),
'argument' => [
'id' => 'views_xml_backend_passthrough',
],
];
return $data;
}
Functions
Name | Description |
---|---|
views_xml_backend_views_data | Implements hook_views_data(). |