function recipe_disable in Recipe 6
Implementation of hook_disable(). Reinstate last used recipe vocabs.
File
- ./
recipe.install, line 220 - Install, update and uninstall functions for the recipe module.
Code
function recipe_disable() {
if ($vocabs = taxonomy_get_vocabularies('recipe')) {
$vocab_ids = array();
foreach ($vocabs as $v) {
$vocab_ids[] = $v->vid;
}
variable_set('recipe_last_vocab_ids', $vocab_ids);
}
}