You are here

datex.views.inc in Datex 7

Same filename and directory in other branches
  1. 7.3 datex.views.inc
  2. 7.2 datex.views.inc

For replacing views default date handler with datex.

File

datex.views.inc
View 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