You are here

function taxonomy_admin_vocabulary_edit in Drupal 4

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

Page to add or edit a vocabulary

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

File

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

Code

function taxonomy_admin_vocabulary_edit($vid = NULL) {
  if ($_POST['op'] == t('Delete') || $_POST['edit']['confirm']) {
    return _taxonomy_confirm_del_vocabulary($vid);
  }
  elseif ($vid) {
    $vocabulary = (array) taxonomy_get_vocabulary($vid);
  }
  return taxonomy_form_vocabulary($vocabulary);
}