function datex_views_data_alter in Datex 7
Same name and namespace in other branches
- 7.3 datex.module \datex_views_data_alter()
- 7.2 datex.views.inc \datex_views_data_alter()
Implements hook_views_data_alter().
For swapping out date handlers with our handler.
File
- ./
datex.views.inc, line 12 - For replacing views default date handler with datex.
Code
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';
}
}
}