You are here

function i18n_taxonomy_term_translation_page in Internationalization 7

Callback for term translation tab.

@pram $term Taxonomy term object

Parameters

$type: Should be always 'taxonomy_term'

2 string references to 'i18n_taxonomy_term_translation_page'
hook_i18n_translation_set_info in i18n_translation/i18n_translation.api.php
Provide information about translation sets and involved objects.
i18n_taxonomy_i18n_translation_set_info in i18n_taxonomy/i18n_taxonomy.i18n.inc
Implements hook_i18n_translation_set_info()

File

i18n_taxonomy/i18n_taxonomy.i18n.inc, line 126
Internationalization (i18n) hooks

Code

function i18n_taxonomy_term_translation_page($type, $term) {
  module_load_include('admin.inc', 'i18n_taxonomy');
  $vocabulary = taxonomy_vocabulary_load($term->vid);
  $translation_set = !empty($term->i18n_tsid) ? i18n_translation_set_load($term->i18n_tsid) : NULL;
  $translation_overview = i18n_taxonomy_translation_term_overview($term);
  $translation_term_form = drupal_get_form('i18n_taxonomy_translation_term_form', $vocabulary, $translation_set, $term);
  return $translation_overview + $translation_term_form;
}