You are here

function _i18n_taxonomy_filter_terms in Internationalization 7

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

1 string reference to '_i18n_taxonomy_filter_terms'
i18n_taxonomy_translate_terms in i18n_taxonomy/i18n_taxonomy.module
Translate an array of taxonomy terms.

File

i18n_taxonomy/i18n_taxonomy.module, line 1226
i18n taxonomy module

Code

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