Révision fc3d89c3
Ajouté par Assos Assos il y a plus de 7 ans
drupal7/sites/all/modules/i18n/i18n_taxonomy/i18n_taxonomy.module | ||
---|---|---|
213 | 213 |
); |
214 | 214 |
} |
215 | 215 |
else { |
216 |
$term = $item['taxonomy_term']; |
|
216 |
if (isset($item['taxonomy_term'])) { |
|
217 |
$term = $item['taxonomy_term']; |
|
218 |
} |
|
219 |
else { |
|
220 |
$term = taxonomy_term_load($item['tid']); |
|
221 |
} |
|
217 | 222 |
$uri = entity_uri('taxonomy_term', $term); |
218 | 223 |
$element[$delta] = array( |
219 | 224 |
'#type' => 'link', |
... | ... | |
1020 | 1025 |
if (!i18n_string_translate_langcode()) { |
1021 | 1026 |
return $terms; |
1022 | 1027 |
} |
1028 |
// $terms is not a valid array or term. |
|
1029 |
if (empty($terms)) { |
|
1030 |
return $terms; |
|
1031 |
} |
|
1023 | 1032 |
$object_info = i18n_object_info('taxonomy_term'); |
1024 | 1033 |
$list = is_array($terms) ? $terms : array($terms); |
1025 | 1034 |
foreach ($list as $index => $term) { |
Formats disponibles : Unified diff
Weekly update of contrib modules