Projet

Général

Profil

Révision 7942932f

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

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/votingapi/views/votingapi.views.inc
275 275

  
276 276
  //Get all entity types in the system and register as relationship.
277 277
  $entity_types = entity_get_info();
278
  $default_relationships = array();
278 279
  foreach($entity_types as $key => $entity_type) {
279
    $default_relationships[] = array(
280
      'description' => $entity_type['label'],
281
      'entity_type' => $key,
282
      'base_table' => $entity_type['base table'],
283
      'entity_id_column' => $entity_type['entity keys']['id'],
284
      'pseudo_vote' => 'votingapi_vote',    // for legacy compatability w/RC1.
285
      'pseudo_cache' => 'votingapi_cache',  // for legacy compatability w/RC1.
286
    );
280
    if (isset($entity_type['base table'])) {
281
      $default_relationships[] = array(
282
        'description' => $entity_type['label'],
283
        'entity_type' => $key,
284
        'base_table' => $entity_type['base table'],
285
        'entity_id_column' => $entity_type['entity keys']['id'],
286
        'pseudo_vote' => 'votingapi_vote',    // for legacy compatability w/RC1.
287
        'pseudo_cache' => 'votingapi_cache',  // for legacy compatability w/RC1.
288
      );
289
    }
287 290
  }
288 291

  
289 292
  foreach ($default_relationships as $data) {

Formats disponibles : Unified diff