datex.views.inc in Datex 7
Same filename and directory in other branches
For replacing views default date handler with datex.
File
datex.views.incView source
<?php
/**
* @file
* For replacing views default date handler with datex.
*/
/**
* Implements hook_views_data_alter().
*
* For swapping out date handlers with our handler.
*/
function datex_views_data_alter(&$data) {
foreach ($data as $k => &$v) {
if (is_array($v)) {
datex_views_data_alter($v);
}
elseif ($v == 'views_handler_field_date') {
$v = 'datex_handler_field_date';
}
}
}
Functions
Name | Description |
---|---|
datex_views_data_alter | Implements hook_views_data_alter(). |