Révision 6331c987
Ajouté par Assos Assos il y a environ 10 ans
drupal7/sites/all/modules/i18n/i18n_taxonomy/i18n_taxonomy.module | ||
---|---|---|
452 | 452 |
return $links; |
453 | 453 |
} |
454 | 454 |
} |
455 |
/** |
|
456 |
* Implements hook_theme(). |
|
457 |
*/ |
|
458 |
function i18n_taxonomy_theme() { |
|
459 |
return array( |
|
460 |
'i18n_taxonomy_term_page' => array( |
|
461 |
'arguments' => array('tids' => array(), 'result' => NULL), |
|
462 |
'file' => 'i18n_taxonomy.pages.inc', |
|
463 |
), |
|
464 |
); |
|
465 |
} |
|
466 | 455 |
|
467 | 456 |
/** |
468 | 457 |
* Get localized term name unfiltered. |
... | ... | |
1231 | 1220 |
// Core doesn't provide a label callback for taxonomy terms. By setting one |
1232 | 1221 |
// we can use it to return the correct localized term name. |
1233 | 1222 |
$entity_info['taxonomy_term']['label callback'] = 'i18n_taxonomy_taxonomy_term_label'; |
1223 |
|
|
1224 |
// Also let core know terms have languages, now. |
|
1225 |
$entity_info['taxonomy_term']['entity keys']['language'] = 'language'; |
|
1234 | 1226 |
} |
1235 | 1227 |
} |
1236 | 1228 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules