You are here

function hijri_views_data_alter in Hijri 7

Same name and namespace in other branches
  1. 8 views/hijri.views.inc \hijri_views_data_alter()

Implements hook_views_data_alter().

File

views/hijri.views.inc, line 11
Views definitions for Hijri module.

Code

function hijri_views_data_alter(&$data) {
  foreach ($data as $table => $config) {
    foreach ($config as $item => $item_config) {
      if (isset($item_config['field']['handler']) && $item_config['field']['handler'] == 'views_handler_field_date') {
        $data[$table][$item]['field']['handler'] = 'hijri_handler_hijri_created';
      }
    }
  }
  return $data;
}