Projet

Général

Profil

Révision b08d2851

Ajouté par Assos Assos il y a environ 10 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/flag/plugins/content_types/flag_link/flag_link.inc
24 24
 * Implements hook_PLUGIN_content_type_content_types().
25 25
 */
26 26
function flag_flag_link_content_type_content_types() {
27
  $types = &drupal_static(__FUNCTION__);
28
  if (isset($types)) {
29
    return $types;
30
  }
31

  
27 32
  $types = array();
28 33
  $entities = entity_get_info();
29 34

  
30 35
  foreach ($entities as $entity_type => $info) {
31
    if (entity_type_supports($entity_type, 'view')) {
32
      $types[$entity_type] = array(
33
        'title' => t('Flag for @entity_type', array('@entity_type' => $info['label'])),
34
        'category' => t('Entity'),
35
        'required context' => new ctools_context_required(t('Entity'), $entity_type),
36
      );
37
    }
36
    $types[$entity_type] = array(
37
      'title' => t('Flag for @entity_type', array('@entity_type' => $info['label'])),
38
      'category' => t('Entity'),
39
      'required context' => new ctools_context_required(t('Entity'), $entity_type),
40
    );
38 41
  }
39 42

  
40 43
  return $types;

Formats disponibles : Unified diff