function taxonomy_admin_term_edit in Drupal 5
Same name and namespace in other branches
- 4 modules/taxonomy.module \taxonomy_admin_term_edit()
- 6 modules/taxonomy/taxonomy.admin.inc \taxonomy_admin_term_edit()
Page to edit a vocabulary term.
1 string reference to 'taxonomy_admin_term_edit'
- taxonomy_menu in modules/
taxonomy/ taxonomy.module - Implementation of hook_menu().
File
- modules/
taxonomy/ taxonomy.module, line 1466 - Enables the organization of content into categories.
Code
function taxonomy_admin_term_edit($tid) {
if ($_POST['op'] == t('Delete') || $_POST['confirm']) {
return drupal_get_form('taxonomy_term_confirm_delete', $tid);
}
if ($term = (array) taxonomy_get_term($tid)) {
return drupal_get_form('taxonomy_form_term', $term['vid'], $term);
}
return drupal_not_found();
}