2009-05-17 11:16:51 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
2013-11-20 18:38:33 +00:00
|
|
|
* Provide views data for user.module.
|
2009-05-17 11:16:51 +00:00
|
|
|
*/
|
|
|
|
|
2014-03-25 19:34:16 +00:00
|
|
|
/**
|
|
|
|
* Implements hook_views_plugins_argument_validator_alter().
|
|
|
|
*/
|
|
|
|
function user_views_plugins_argument_validator_alter(array &$plugins) {
|
|
|
|
$plugins['entity:user']['title'] = t('User ID');
|
|
|
|
$plugins['entity:user']['class'] = 'Drupal\user\Plugin\views\argument_validator\User';
|
|
|
|
$plugins['entity:user']['provider'] = 'user';
|
|
|
|
}
|