function i18n_taxonomy_term_description in Internationalization 7
Get localized term description unfiltered.
File
- i18n_taxonomy/
i18n_taxonomy.module, line 482 - i18n taxonomy module
Code
function i18n_taxonomy_term_description($term, $langcode = NULL) {
$key = i18n_object_info('taxonomy_term', 'key');
return i18n_taxonomy_vocabulary_mode($term->vid, I18N_MODE_LOCALIZE) ? i18n_string(array(
'taxonomy',
'term',
$term->{$key},
'description',
), $term->description, array(
'langcode' => $langcode,
'sanitize' => FALSE,
)) : $term->description;
}