You are here

function makemeeting_field_views_data_alter in Make Meeting Scheduler 7.2

Implements hook_field_views_data_alter().

File

./makemeeting.module, line 305
Hooks and field implementations

Code

function makemeeting_field_views_data_alter(&$result, $field, $module) {
  if ($module == 'makemeeting') {
    foreach ($result as $table => $data) {
      $field_name = $field['field_name'];

      // We will replace the filter handlers with a friendlier one.
      $result[$table][$field_name . '_closed']['filter']['handler'] = 'views_handler_filter_boolean_operator';
      $result[$table][$field_name . '_hidden']['filter']['handler'] = 'views_handler_filter_boolean_operator';
      $result[$table][$field_name . '_one_option']['filter']['handler'] = 'views_handler_filter_boolean_operator';
      $result[$table][$field_name . '_yesnomaybe']['filter']['handler'] = 'views_handler_filter_boolean_operator';
    }
  }
}