taxonomy_term_confirm_delete

  1. drupal
    1. drupal6
    2. drupal7
Versionen
drupal6 – drupal7 taxonomy_term_confirm_delete(&$form_state, $tid)

Form builder for the term delete form.

See also

taxonomy_term_confirm_delete_submit()

Verwandte Themen

Code

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

<?php
function taxonomy_term_confirm_delete(&$form_state, $tid) {
  $term = taxonomy_term_load($tid);

  $form['type'] = array('#type' => 'value', '#value' => 'term');
  $form['name'] = array('#type' => 'value', '#value' => $term->name);
  $form['tid'] = array('#type' => 'value', '#value' => $tid);
  $form['delete'] = array('#type' => 'value', '#value' => TRUE);
  return confirm_form($form, 
                  t('Are you sure you want to delete the term %title?', 
                  array('%title' => $term->name)), 
                  'admin/content/taxonomy', 
                  t('Deleting a term will delete all its children if there are any. 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