Project

General

Profile

Paste
Download (436 Bytes) Statistics
| Branch: | Revision:

root / drupal7 / sites / all / modules / views / modules / user / views_plugin_argument_default_current_user.inc @ 8be7bf84

1
<?php
2

    
3
/**
4
 * @file
5
 * Definition of views_plugin_argument_default_current_user.
6
 */
7

    
8
/**
9
 * Default argument plugin to extract the global $user.
10
 *
11
 * This plugin actually has no options so it odes not need to do a great deal.
12
 */
13
class views_plugin_argument_default_current_user extends views_plugin_argument_default {
14

    
15
  /**
16
   * {@inheritdoc}
17
   */
18
  public function get_argument() {
19
    global $user;
20
    return $user->uid;
21
  }
22

    
23
}