function tracker_views_data_alter

Implements hook_views_data_alter().

File

drupal/core/modules/tracker/tracker.views.inc, line 161
Provide views data for tracker.module.

Code

function tracker_views_data_alter(&$data) {

  // Provide additional uid_touch handlers which are handled by tracker
  $data['node']['uid_touch_tracker'] = array(
    'group' => t('Tracker - User'),
    'title' => t('User posted or commented'),
    'help' => t('Display nodes only if a user posted the node or commented on the node.'),
    'argument' => array(
      'field' => 'uid',
      'name table' => 'users',
      'name field' => 'name',
      'id' => 'tracker_user_uid',
      'no group by' => TRUE,
    ),
    'filter' => array(
      'field' => 'uid',
      'name table' => 'users',
      'name field' => 'name',
      'id' => 'tracker_user_uid',
    ),
  );
}