You are here

function fivestar_field_views_data in Fivestar 7.2

Implements hook_field_views_data().

File

includes/fivestar.field.inc, line 137
Provides CCK integration for fivestar module.

Code

function fivestar_field_views_data($field) {
  $data = field_views_field_default_views_data($field);
  foreach ($data as $table_name => $table_data) {

    // Add our handler to the rating views field.
    $data[$table_name][$field['field_name'] . '_rating']['filter']['handler'] = 'fivestar_views_handler_filter_in_operator';
  }
  return $data;
}