function user_views_plugins

Same name in other branches
  1. 7.x-3.x modules/user.views.inc \user_views_plugins()

Implementation of hook_views_plugins

Related topics

File

modules/user.views.inc, line 460

Code

function user_views_plugins() {
    return array(
        'module' => 'views',
        // This just tells our themes are elsewhere.
'argument default' => array(
            'user' => array(
                'title' => t('User ID from URL'),
                'handler' => 'views_plugin_argument_default_user',
                'path' => drupal_get_path('module', 'views') . '/modules/user',
                // not necessary for most modules
'parent' => 'fixed',
            ),
            'current_user' => array(
                'title' => t('User ID from logged in user'),
                'handler' => 'views_plugin_argument_default_current_user',
                'path' => drupal_get_path('module', 'views') . '/modules/user',
                // not necessary for most modules
'parent' => 'fixed',
            ),
        ),
        'argument validator' => array(
            'user' => array(
                'title' => t('User'),
                'handler' => 'views_plugin_argument_validate_user',
                'path' => drupal_get_path('module', 'views') . '/modules/user',
            ),
        ),
    );
}