You are here

function faq_ask_taxonomy_vocabulary_delete in FAQ_Ask 7

Implementation of hook_taxonomy_vocabulary_delete()

Remove vocabulary from the list we're using too

Parameters

object $vocabulary: Vocabulary to be deleted

File

./faq_ask.module, line 1842
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_vocabulary_delete($vocabulary) {

  // Each term gets deleted first, so all we have to do is remove it from our vocab list.
  if (in_array($vocabulary->vid, variable_get('faq_ask_vocabularies', array()))) {
    _faq_ask_delete_vocabulary($vocabulary);
  }
}