taxonomy_taxonomy_term_delete

function taxonomy_taxonomy_term_delete

taxonomy_taxonomy_term_delete($term)

Implements hook_taxonomy_term_delete().

Related topics

File

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

Code

function taxonomy_taxonomy_term_delete($term) {
  if (variable_get('taxonomy_maintain_index_table', TRUE)) {
    // Clean up the {taxonomy_index} table when terms are deleted.
    db_delete('taxonomy_index')->condition('tid', $term->tid)->execute();
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!taxonomy!taxonomy.module/function/taxonomy_taxonomy_term_delete/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部