function i18n_taxonomy_i18n_context_language in Internationalization 7
Implements hook_i18n_context_language().
File
- i18n_taxonomy/
i18n_taxonomy.module, line 414 - i18n taxonomy module
Code
function i18n_taxonomy_i18n_context_language() {
if (arg(0) == 'taxonomy') {
// Taxonomy term pages
if (arg(1) == 'term' && is_numeric(arg(2)) && ($term = menu_get_object('taxonomy_term', 2)) && ($langcode = i18n_object_langcode($term))) {
return i18n_language_object($langcode);
}
}
}