views_plugin_argument_default_current_user.inc

  1. 3.x modules/user/views_plugin_argument_default_current_user.inc
  2. 2.x modules/user/views_plugin_argument_default_current_user.inc

Contains the current user argument default plugin.

File

modules/user/views_plugin_argument_default_current_user.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Contains the current user argument default plugin.
  5. */
  6. /**
  7. * Default argument plugin to extract the global $user
  8. *
  9. * This plugin actually has no options so it odes not need to do a great deal.
  10. */
  11. class views_plugin_argument_default_current_user extends views_plugin_argument_default {
  12. function get_argument() {
  13. global $user;
  14. return $user->uid;
  15. }
  16. }