Commit 37b491f1 authored by TravisCarden's avatar TravisCarden

By TravisCarden: Added hook_uninstall() implementation to remove persistent variables.

parent 8516e64f
<?php
/**
* @file
* Install, update and uninstall functions for the Checklist API module.
*/
/**
* Implements hook_uninstall().
*/
function checklistapi_uninstall() {
// Delete all Checklist API persistent variables.
db_delete('variable')
->condition('name', db_like('checklistapi_') . '%', 'LIKE')
->execute();
cache_clear_all('variables', 'cache_bootstrap');
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment