Projet

Général

Profil

Révision fcc9430f

Ajouté par Assos Assos il y a plus de 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/votingapi/views/votingapi_views_handler_relationship.inc
6 6
 */
7 7

  
8 8
/**
9
 * A custom join handler that connects arbitrary base tables to VotingAPI's data.
9
 * A custom join handler that connects arbitrary base tables to VotingAPI's
10
 * data.
10 11
 *
11
 * The base relationship handler can only handle a single join. Some relationships
12
 * are more complex and might require chains of joins; for those, you must
13
 * utilize a custom relationship handler.
12
 * The base relationship handler can only handle a single join. Some
13
 * relationships are more complex and might require chains of joins; for those,
14
 * you must utilize a custom relationship handler.
14 15
 *
15 16
 * Definition items:
16 17
 * - base: The new base table this relationship will be adding. This does not
......
25 26
 *   the relationship.
26 27
 */
27 28
class votingapi_views_handler_relationship extends views_handler_relationship {
29

  
28 30
  function option_definition() {
29 31
    $options = parent::option_definition();
30 32

  
......
129 131
          $def['extra'][] = array(
130 132
            'field' => $field,
131 133
            'value' => $value,
132
            'numeric' => FALSE
134
            'numeric' => FALSE,
133 135
          );
134 136
          $alias .= '_' . str_replace(array(' ', '-', '.'), '_', $value);
135 137
        }
......
140 142
      $def['extra'][] = array(
141 143
        'field' => 'uid',
142 144
        'value' => '***CURRENT_USER***',
143
        'numeric' => FALSE
145
        'numeric' => FALSE,
144 146
      );
145 147
      $alias .= '_curuser';
146 148
    }

Formats disponibles : Unified diff