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/book/views_plugin_argument_default_book_root.inc
1 1
<?php
2

  
2 3
/**
3 4
 * @file
4
 * Contains the book root from current node argument default plugin.
5
 * Definition of views_plugin_argument_default_book_root.
5 6
 */
6 7

  
7 8
/**
8 9
 * Default argument plugin to get the current node's book root.
9 10
 */
10 11
class views_plugin_argument_default_book_root extends views_plugin_argument_default_node {
11
  function get_argument() {
12

  
13
  /**
14
   * {@inheritdoc}
15
   */
16
  public function get_argument() {
12 17
    // Use the argument_default_node plugin to get the nid argument.
13 18
    $nid = parent::get_argument();
14 19
    if (!empty($nid)) {
......
18 23
      }
19 24
    }
20 25
  }
26

  
21 27
}

Formats disponibles : Unified diff