You are here

function _i18ntaxonomy_filter_terms in Internationalization 6

Recursive array filtering, convert all terms to 'term object'

1 string reference to '_i18ntaxonomy_filter_terms'
i18ntaxonomy_translate_terms in i18ntaxonomy/i18ntaxonomy.module
Translate an array of taxonomy terms.

File

i18ntaxonomy/i18ntaxonomy.module, line 1099
i18n taxonomy module

Code

function _i18ntaxonomy_filter_terms($term) {
  if (is_array($term)) {
    return array_map('_i18n_taxonomy_filter_terms', $term);
  }
  else {
    return is_object($term) ? $term : taxonomy_get_term($term);
  }
}