function _nat_delete_terms in Node Auto Term [NAT] 7.2
Same name and namespace in other branches
- 5 nat.module \_nat_delete_terms()
- 6.2 nat.module \_nat_delete_terms()
- 6 nat.module \_nat_delete_terms()
- 7 nat.module \_nat_delete_terms()
Delete associated terms from the taxonomy system. @todo Options to delete child nodes as well etc.
Parameters
$nid: Node ID of the node whose NAT-terms are to be deleted.
1 call to _nat_delete_terms()
- nat_node_delete in ./
nat.module - Implements hook_node_delete().
File
- ./
nat.module, line 650 - NAT - node auto term - is a helper module that automatically creates a term using the same title as a node.
Code
function _nat_delete_terms($nid) {
$terms = nat_get_terms($nid);
foreach ($terms as $term) {
taxonomy_term_delete($term->tid);
}
}