function date_api_views_data in Date 6
Same name and namespace in other branches
- 6.2 includes/date_api.views.inc \date_api_views_data()
Implementation of hook_views_data()
File
- ./
date_api.views.inc, line 27 - Defines date-related Views data and plugins:
Code
function date_api_views_data() {
$data = array();
// The flexible date argument.
$data['node']['date_argument'] = array(
'group' => t('Date'),
'title' => t('Date'),
'help' => t('Filter any Views date field by a date argument, using any common ISO date/period format (i.e. YYYY, YYYY-MM, YYYY-MM-DD, YYYY-W99, YYYY-MM-DD--P3M, P90D, etc).'),
'argument' => array(
'handler' => 'date_api_argument_handler',
'empty name field' => t('Undated'),
),
);
// The flexible date fliter.
$data['node']['date_filter'] = array(
'group' => t('Date'),
'title' => t('Date'),
'help' => t('Filter any Views date field.'),
'filter' => array(
'handler' => 'date_api_filter_handler',
'empty name field' => t('Undated'),
),
);
return $data;
}