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/taxonomy/views_handler_argument_term_node_tid_depth_modifier.inc
2 2

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

  
8 8
/**
......
14 14
 * @ingroup views_argument_handlers
15 15
 */
16 16
class views_handler_argument_term_node_tid_depth_modifier extends views_handler_argument {
17
  function options_form(&$form, &$form_state) { }
18
  function query($group_by = FALSE) { }
19
  function pre_query() {
20
    // We don't know our argument yet, but it's based upon our position:
17

  
18
  /**
19
   * {@inheritdoc}
20
   */
21
  public function options_form(&$form, &$form_state) {
22
  }
23

  
24
  /**
25
   * {@inheritdoc}
26
   */
27
  public function query($group_by = FALSE) {
28
  }
29

  
30
  /**
31
   * {@inheritdoc}
32
   */
33
  public function pre_query() {
34
    // We don't know our argument yet, but it's based upon our position.
21 35
    $argument = isset($this->view->args[$this->position]) ? $this->view->args[$this->position] : NULL;
22 36
    if (!is_numeric($argument)) {
23 37
      return;
......
31 45
      $argument = -10;
32 46
    }
33 47

  
34
    // figure out which argument preceded us.
48
    // Figure out which argument preceded us.
35 49
    $keys = array_reverse(array_keys($this->view->argument));
36 50
    $skip = TRUE;
37 51
    foreach ($keys as $key) {
......
61 75
      $handler->options['depth'] = $argument;
62 76
    }
63 77
  }
78

  
64 79
}

Formats disponibles : Unified diff