Projet

Général

Profil

Révision 5d12d676

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/views/modules/user/views_plugin_argument_default_current_user.inc
2 2

  
3 3
/**
4 4
 * @file
5
 * Contains the current user argument default plugin.
5
 * Definition of views_plugin_argument_default_current_user.
6 6
 */
7 7

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

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

  
18 23
}

Formats disponibles : Unified diff