You are here

function notifications_views_views_data_alter in Notifications 7

Same name and namespace in other branches
  1. 6.2 notifications_views/notifications_views.module \notifications_views_views_data_alter()

Implements hook_views_data_alter().

File

notifications_views/includes/notifications_views.views.inc, line 249

Code

function notifications_views_views_data_alter(&$data) {
  $data['users']['name2'] = array(
    'title' => t('User name autocomplete filter'),
    'real field' => 'name',
    'help' => t('Filters by first part of username, used for autocompleting users.'),
    'argument' => array(
      'handler' => 'notifications_views_handler_argument_autocomplete',
    ),
  );
}