You are here

function tagclouds_i18n_taxonomy_term_description in TagCloud 8

Same name and namespace in other branches
  1. 2.0.x tagclouds.module \tagclouds_i18n_taxonomy_term_description()
  2. 1.0.x tagclouds.module \tagclouds_i18n_taxonomy_term_description()

Get localized term description unfiltered. Adapted from i18n_taxonomy_term_name(). Should moved to i18n, issue http://drupal.org/node/1704658.

File

./tagclouds.module, line 44

Code

function tagclouds_i18n_taxonomy_term_description($term, $langcode = NULL) {
  return i18n_taxonomy_vocabulary_mode($term->vid, I18N_MODE_LOCALIZE) ? i18n_string([
    'taxonomy',
    'term',
    $term->tid,
    'description',
  ], $term->description, [
    'langcode' => $langcode,
    'sanitize' => FALSE,
  ]) : $term->description;
}