function pmexpense_date_api_fields in Drupal PM (Project Management) 7
Implements hook_date_api_fields().
File
- pmexpense/
pmexpense.views.inc, line 262 - Functions to expose Project Management expense data to views
Code
function pmexpense_date_api_fields($field) {
$values = array(
'sql_type' => DATE_UNIX,
'tz_handling' => 'site',
'timezone_field' => '',
'offset_field' => '',
'related_fields' => array(),
'granularity' => array(
'year',
'month',
'day',
),
);
switch ($field) {
case 'pmexpense.expensedate':
return $values;
}
}