You are here

function date_views_field_tables in Date 5.2

Switch out the regular CCK field handler to use a date version that can be smarter about how to handle grouped dates.

1 call to date_views_field_tables()
_date_field_settings in date/date_admin.inc
Implementation of hook_field_settings().

File

date/date_views.inc, line 24

Code

function date_views_field_tables($field) {
  $field_types = _content_field_types();
  $tables = content_views_field_tables($field);
  $key = 'node_data_' . $field['field_name'];
  $db_info = content_database_info($field);
  $columns = $db_info['columns'];
  $main_column = array_shift($columns);
  $tables[$key]['fields'][$main_column['column']]['handler'] = array(
    'date_views_field_handler_group' => t('Group multiple values'),
    'date_views_field_handler_ungroup' => t('Do not group multiple values'),
    'date_views_field_handler_first' => t('Show first value only'),
    'date_views_field_handler_last' => t('Show last value only'),
  );
  return $tables;
}