function notifications_views_views_data_alter in Notifications 6.2
Same name and namespace in other branches
- 7 notifications_views/includes/notifications_views.views.inc \notifications_views_views_data_alter()
File
- notifications_views/
notifications_views.module, line 375
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',
),
);
$data['users']['perm'] = array(
'title' => t('Permissions'),
'help' => t('Limit to users that have permissions. Emulates user access: allows user 1, gives authenticated role.'),
'real field' => 'uid',
'filter' => array(
'handler' => 'notifications_views_handler_filter_perm',
),
);
}