Projet

Général

Profil

Révision 76e2e7c3

Ajouté par Assos Assos il y a environ 10 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/flag/includes/views/flag_handler_field_ops.inc
35 35
  function get_parent_relationship() {
36 36
    $parent = $this->view->relationship[$this->options['relationship']]->options['relationship'];
37 37
    if (!$parent || $parent == 'none') {
38
      return NULL; // Base query table.
38
      // Base query table.
39
      return NULL;
39 40
    }
40 41
    else {
41 42
      return $this->view->relationship[$parent]->alias;
......
66 67
   */
67 68
  function query() {
68 69
    if (!($flag = $this->get_flag())) {
69
      return; // Error message is printed in render().
70
      // Error message is printed in render().
71
      return;
70 72
    }
71 73
    $info = $flag->get_views_info();
72 74
    $parent = $this->get_parent_relationship();
......
128 130
   */
129 131
  function pre_render(&$values) {
130 132
    if (!($flag = $this->get_flag())) {
131
      return; // Error message is printed in render().
133
      // Error message is printed in render().
134
      return;
132 135
    }
133 136

  
134 137
    $ids = array();
......
144 147

  
145 148
  function render($values) {
146 149
    if (!($flag = $this->get_flag())) {
147
      return t('Missing flag'); // get_flag() itself will print a more detailed message.
150
      // get_flag() itself will print a more detailed message.
151
      return t('Missing flag');
148 152
    }
149 153

  
150 154
    $entity_id = $values->{$this->aliases['entity_id']};

Formats disponibles : Unified diff