Projet

Général

Profil

Révision 560c3060

Ajouté par Julien Enselme il y a plus de 8 ans

Update ctools 1.7 -> 1.9

Voir les différences:

drupal7/sites/all/modules/ctools/plugins/content_types/entity_context/entity_field.inc
34 34
    return $types;
35 35
  }
36 36

  
37
  $cache_key = 'ctools_entity_field_content_type_content_types';
38
  if ($cache = cache_get($cache_key)) {
39
    $types = $cache->data;
40
    if (!empty($types)) {
41
      return $types;
42
    }
43
  }
44

  
37 45
  // This will hold all the individual field content types.
38 46
  $context_types = array();
39 47
  $entities = entity_get_info();
......
82 90
    unset($context_types[$key]['types']);
83 91
  }
84 92

  
93
  cache_set($cache_key, $types);
94

  
85 95
  return $types;
86 96
}
87 97

  

Formats disponibles : Unified diff