function tracker_views_data_alter

cis7 tracker.views.inc tracker_views_data_alter(&$data)
cle7 tracker.views.inc tracker_views_data_alter(&$data)
elmsmedia7 tracker.views.inc tracker_views_data_alter(&$data)
icor7 tracker.views.inc tracker_views_data_alter(&$data)
meedjum_blog7 tracker.views.inc tracker_views_data_alter(&$data)
mooc7 tracker.views.inc tracker_views_data_alter(&$data)

Implementation of hook_views_data_alter().

File

sites/all/modules/ulmus/views/modules/tracker.views.inc, line 163
Provide views data and handlers 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',
      'handler' => 'views_handler_argument_tracker_comment_user_uid',
      'no group by' => TRUE,
    ),
    'filter' => array(
      'field' => 'uid',
      'name table' => 'users',
      'name field' => 'name',
      'handler' => 'views_handler_filter_tracker_comment_user_uid',
    ),
  );
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.