summaryrefslogtreecommitdiff
path: root/sites/all/modules/views/modules/user/views_plugin_argument_default_current_user.inc
blob: e11c70223e56e198f40526fdd39aec2f6b369991 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

/**
 * @file
 * Contains the current user argument default plugin.
 */

/**
 * Default argument plugin to extract the global $user
 *
 * This plugin actually has no options so it odes not need to do a great deal.
 */
class views_plugin_argument_default_current_user extends views_plugin_argument_default {
  function get_argument() {
    global $user;
    return $user->uid;
  }
}