function taxonomy_term_delete

Deletes a term.

Parameters

$tid: The term ID.

7 calls to taxonomy_term_delete()
EntityCrudHookTest::testTaxonomyTermHooks in drupal/core/modules/system/lib/Drupal/system/Tests/Entity/EntityCrudHookTest.php
Tests hook invocations for CRUD operations on taxonomy terms.
ForumTest::testAddOrphanTopic in drupal/core/modules/forum/lib/Drupal/forum/Tests/ForumTest.php
Tests that forum nodes can't be added without a parent.
forum_confirm_delete_submit in drupal/core/modules/forum/forum.admin.inc
Form submission handler for forum_confirm_delete().
HooksTest::testTaxonomyTermHooks in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/HooksTest.php
Test hooks on CRUD of terms.
LoadMultipleTest::testTaxonomyTermMultipleLoad in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/Tests/LoadMultipleTest.php
Create a vocabulary and some taxonomy terms, ensuring they're loaded correctly using taxonomy_term_load_multiple().

... See full list

File

drupal/core/modules/taxonomy/taxonomy.module, line 515
Enables the organization of content into categories.

Code

function taxonomy_term_delete($tid) {
  taxonomy_term_delete_multiple(array(
    $tid,
  ));
}