function translation_taxonomy_admin in Internationalization 5.2
Same name and namespace in other branches
- 5.3 translation/translation.module \translation_taxonomy_admin()
- 5 translation/translation.module \translation_taxonomy_admin()
This is the callback for taxonomy translations
Gets the urls: admin/content/taxonomy/[vid]/translation/edit/[trid] admin/content/taxonomy/[vid]/translation/new
1 string reference to 'translation_taxonomy_admin'
- translation_menu in translation/
translation.module - Implementation of hook_menu().
File
- translation/
translation.module, line 936
Code
function translation_taxonomy_admin($op = NULL, $trid = NULL) {
$vid = arg(3);
$op = arg(5);
$trid = arg(6);
$output = '';
switch ($op) {
case 'edit':
case 'new':
drupal_set_title(t('Edit term translations'));
$output .= drupal_get_form('translation_taxonomy_term_form', $vid, $trid);
break;
default:
$output .= translation_taxonomy_overview($vid);
}
return $output;
}