You are here

function _taxonomy_manager_term_get_lang in Taxonomy Manager 7

Same name and namespace in other branches
  1. 6.2 taxonomy_manager.module \_taxonomy_manager_term_get_lang()

returns language of a term (multilingual voc), if i18ntaxonomy enabled

4 calls to _taxonomy_manager_term_get_lang()
taxonomy_manager_check_language in ./taxonomy_manager.admin.inc
checks if terms in move or merge operation are of the same language
taxonomy_manager_double_tree_form in ./taxonomy_manager.admin.inc
taxonomy_manager_form in ./taxonomy_manager.admin.inc
defines forms for taxonomy manager interface
taxonomy_manager_tree_build_child_form in ./taxonomy_manager.module
callback for generating and rendering nested child forms (AHAH)

File

./taxonomy_manager.module, line 988
Taxonomy Manager

Code

function _taxonomy_manager_term_get_lang($tid) {
  if (module_exists('i18n_taxonomy')) {
    $term = taxonomy_term_load($tid);
    if ($term && isset($term->language)) {
      return $term->language;
    }
  }
  return "";
}