You are here

function recently_read_views_data_alter in Recently Read 7.2

Same name and namespace in other branches
  1. 8 recently_read.views.inc \recently_read_views_data_alter()
  2. 7.3 includes/recently_read.views.inc \recently_read_views_data_alter()

Implements of hook_views_data_alter().

File

includes/recently_read.views.inc, line 70

Code

function recently_read_views_data_alter(&$data) {
  $data['node']['rid'] = array(
    'title' => t('Recently Read'),
    'help' => t('Recently Read Relationship'),
    'filter' => array(
      'handler' => 'views_handler_filter_rr_nid',
    ),
    'relationship' => array(
      'group' => 'Recently Read',
      'label' => t('Recently Read'),
      'base' => 'recently_read_nodes',
      'base field' => 'nid',
      'relationship field' => 'nid',
      'handler' => 'views_handler_relationship',
    ),
  );
}