Projet

Général

Profil

Révision c304a780

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ctools/plugins/relationships/terms_from_node.inc
31 31
  // Collect all terms for the chosen vocabulary and concatenate them.
32 32
  $node = $context->data;
33 33
  $terms = array();
34
  
34

  
35 35
  $fields = field_info_instances('node', $node->type);
36 36
  foreach ($fields as $name => $info) {
37 37
    $field_info = field_info_field($name);
......
47 47
      $items = field_get_items('node', $node, $name);
48 48
      if (is_array($items)) {
49 49
        $tids = array();
50
        foreach ($items AS $item) {
50
        foreach ($items as $item) {
51 51
          $tids[] = $item['target_id'];
52 52
        }
53 53

  
......
60 60
      }
61 61
    }
62 62
  }
63
  
63

  
64 64
  if (!empty($terms)) {
65 65
    $all_terms = ctools_break_phrase(implode($conf['concatenator'], $terms));
66 66
    return ctools_context_create('terms', $all_terms);

Formats disponibles : Unified diff