You are here

function faq_ask_taxonomy_term_delete in FAQ_Ask 7

Implmentation of hook_taxonomy_term_delete()

Deletes any expert/term relationships for this term

Parameters

object $term: Term to be deleted

File

./faq_ask.module, line 1826
This module is an add-on to the FAQ module that allows users with the 'ask question' permission to create a question which will be queued for an 'expert' to answer.

Code

function faq_ask_taxonomy_term_delete($term) {

  // Delete term: remove experts.
  if (in_array($term->vid, variable_get('faq_ask_vocabularies', array()))) {
    _faq_ask_delete_expert($term->tid, $term->name);
  }
}