You are here

public function views_plugin_argument_default_current_user::get_argument in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 modules/user/views_plugin_argument_default_current_user.inc \views_plugin_argument_default_current_user::get_argument()
  2. 6.2 modules/user/views_plugin_argument_default_current_user.inc \views_plugin_argument_default_current_user::get_argument()

Return the default argument.

This needs to be overridden by every default argument handler to properly do what is needed.

Overrides views_plugin_argument_default::get_argument

File

modules/user/views_plugin_argument_default_current_user.inc, line 18
Definition of views_plugin_argument_default_current_user.

Class

views_plugin_argument_default_current_user
Default argument plugin to extract the global $user.

Code

public function get_argument() {
  global $user;
  return $user->uid;
}