function uc_views_addresses_date_api_fields in Ubercart Views 6.3
Implementation of hook_date_api_fields().
File
- uc_views_addresses/
uc_views_addresses.module, line 28 - Created with http://drupal.org/project/code_gen
Code
function uc_views_addresses_date_api_fields($field) {
$values = array(
// The type of date: DATE_UNIX, DATE_ISO, DATE_DATETIME.
'sql_type' => DATE_UNIX,
// Timezone handling options: 'none', 'site', 'date', 'utc'.
'tz_handling' => 'site',
// Needed only for dates that use 'date' tz_handling.
'timezone_field' => '',
// Needed only for dates that use 'date' tz_handling.
'offset_field' => '',
// Array of "table.field" values for related fields that should be
// loaded automatically in the Views SQL.
'related_fields' => array(),
// Granularity of this date field's db data.
'granularity' => array(
'year',
'month',
'day',
'hour',
'minute',
'second',
),
);
switch ($field) {
case 'uc_addresses.created':
case 'uc_addresses.modified':
return $values;
}
}