You are here

function vote_up_down_views_data in Vote Up/Down 6

Implementation of hook_views_data()

File

views/vote_up_down.views.inc, line 12
Provide views integration with vote_up_down.module.

Code

function vote_up_down_views_data() {
  $data['vote_up_down']['table']['group'] = t('Vote up down');
  $data['vote_up_down']['table']['join'] = array(
    '#global' => array(),
  );
  $data['vote_up_down']['widget'] = array(
    'title' => t('Vote Up Down Widget'),
    'help' => t('Provide a widget for voting up/down.'),
    'field' => array(
      'handler' => 'views_handler_field_vote_up_down_widget',
    ),
  );
  return $data;
}