1 date.views.inc | date_views_data_alter(&$data) |
Implements hook_views_data_alter().
File
- core/
modules/ date/ views/ date.views.inc, line 94 - Defines date-related Views data and plugins:
Code
function date_views_data_alter(&$data) {
// Mark all the core date handlers as date fields.
// This will identify all handlers that directly use the _date handlers,
// will not pick up any that extend those handlers.
foreach ($data as $base_table => &$table) {
foreach ($table as $id => &$field) {
foreach (array('field', 'sort', 'filter', 'argument') as $type) {
if (isset($field[$type]) && isset($field[$type]['handler']) && ($field[$type]['handler'] == 'views_handler_' . $type . '_date')) {
$field[$type]['is date'] = TRUE;
}
}
}
}
}