function user_views_plugins in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 6.3 modules/user.views.inc \user_views_plugins()
- 7.3 modules/user.views.inc \user_views_plugins()
Implementation of hook_views_plugins
Related topics
File
- modules/
user.views.inc, line 387 - Provide views data and handlers for user.module
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',
),
),
);
}