You are here

function i18ntaxonomy_page_vocabulary in Internationalization 6

This is the callback for taxonomy translations.

Gets the urls: admin/content/taxonomy/%taxonomy_vocabulary/translation admin/content/taxonomy/i18n/term/xx admin/content/taxonomy/i18n/term/new/xx admin/content/taxonomy/vid/translation/op/trid

1 string reference to 'i18ntaxonomy_page_vocabulary'
i18ntaxonomy_menu in i18ntaxonomy/i18ntaxonomy.module
Implementation of hook_menu().

File

i18ntaxonomy/i18ntaxonomy.admin.inc, line 17
Helper functions for taxonomy administration.

Code

function i18ntaxonomy_page_vocabulary($vocabulary, $op = NULL, $tid = NULL) {
  switch ($op) {
    case 'edit':
      drupal_set_title(t('Edit term translations'));
      $output = drupal_get_form('i18ntaxonomy_translation_term_form', $vocabulary->vid, $tid);
      break;
    default:
      $output = i18ntaxonomy_translation_overview($vocabulary->vid);
  }
  return $output;
}