views_plugin_argument_default_current_user.inc in Views (for Drupal 7) 6.2
Same filename and directory in other branches
Contains the current user argument default plugin.
File
modules/user/views_plugin_argument_default_current_user.incView source
<?php
/**
* @file
* Contains the current user argument default plugin.
*/
/**
* Default argument plugin to extract the global $user
*/
class views_plugin_argument_default_current_user extends views_plugin_argument_default {
function get_argument() {
global $user;
return $user->uid;
}
}
Classes
Name | Description |
---|---|
views_plugin_argument_default_current_user | Default argument plugin to extract the global $user |