taxonomy_vocabulary_confirm_delete

  1. drupal
    1. drupal6
    2. drupal7
Versionen
drupal6 – drupal7 taxonomy_vocabulary_confirm_delete(&$form_state, $vid)

Form builder for the vocabulary delete confirmation form.

See also

taxonomy_vocabulary_confirm_delete_submit()

Verwandte Themen

Code

modules/taxonomy/taxonomy.admin.inc, line 869

<?php
function taxonomy_vocabulary_confirm_delete(&$form_state, $vid) {
  $vocabulary = taxonomy_vocabulary_load($vid);

  $form['#id'] = 'taxonomy_vocabulary_confirm_delete';
  $form['type'] = array('#type' => 'value', '#value' => 'vocabulary');
  $form['vid'] = array('#type' => 'value', '#value' => $vid);
  $form['name'] = array('#type' => 'value', '#value' => $vocabulary->name);
  $form['#submit'] = array('taxonomy_vocabulary_confirm_delete_submit');
  return confirm_form($form, 
                  t('Are you sure you want to delete the vocabulary %title?', 
                  array('%title' => $vocabulary->name)), 
                  'admin/content/taxonomy', 
                  t('Deleting a vocabulary will delete all the terms in it. This action cannot be undone.'), 
                  t('Delete'), 
                  t('Cancel'));
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen