views_plugin_argument_default_current_user.inc 388 B

123456789101112131415161718
  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. }