You are here

function taxonomy_admin_vocabulary_edit in Drupal 5

Same name and namespace in other branches
  1. 4 modules/taxonomy.module \taxonomy_admin_vocabulary_edit()
  2. 6 modules/taxonomy/taxonomy.admin.inc \taxonomy_admin_vocabulary_edit()

Page to edit a vocabulary.

1 string reference to 'taxonomy_admin_vocabulary_edit'
taxonomy_menu in modules/taxonomy/taxonomy.module
Implementation of hook_menu().

File

modules/taxonomy/taxonomy.module, line 1453
Enables the organization of content into categories.

Code

function taxonomy_admin_vocabulary_edit($vid = NULL) {
  if ($_POST['op'] == t('Delete') || $_POST['confirm']) {
    return drupal_get_form('taxonomy_vocabulary_confirm_delete', $vid);
  }
  if ($vocabulary = (array) taxonomy_get_vocabulary($vid)) {
    return drupal_get_form('taxonomy_form_vocabulary', $vocabulary);
  }
  return drupal_not_found();
}