1 user.views.inc user_views_plugins()

Implements hook_views_plugins().

File

core/modules/user/views/user.views.inc, line 509
Provide views data and handlers for user.module.

Code

function user_views_plugins() {
  return array(
    'module' => 'views', // This just tells our themes are elsewhere.
    'row' => array(
      'user' => array(
        'title' => t('User accounts'),
        'help' => t('Display the user accounts with standard user account view.'),
        'handler' => 'views_plugin_row_user_view',
        'base' => array('users'), // only works with 'users' as base.
        'uses options' => TRUE,
        'type' => 'normal',
        'help topic' => 'style-users',
      ),
    ),
    'argument default' => array(
      'user' => array(
        'title' => t('User account ID from URL'),
        'handler' => 'views_plugin_argument_default_user',
        'path' => backdrop_get_path('module', 'views') . '/modules/user', // not necessary for most modules
      ),
      'current_user' => array(
        'title' => t('User account ID from logged in person'),
        'handler' => 'views_plugin_argument_default_current_user',
        'path' => backdrop_get_path('module', 'views') . '/modules/user', // not necessary for most modules
      ),
    ),
    'argument validator' => array(
      'user' => array(
        'title' => t('User account'),
        'handler' => 'views_plugin_argument_validate_user',
        'path' => backdrop_get_path('module', 'views') . '/modules/user', // not necessary for most modules
      ),
    ),
  );
}