function role_watchdog_uninstall in Role Watchdog 7
Same name and namespace in other branches
- 6.2 role_watchdog.install \role_watchdog_uninstall()
- 6 role_watchdog.install \role_watchdog_uninstall()
- 7.2 role_watchdog.install \role_watchdog_uninstall()
Implements hook_uninstall().
File
- ./
role_watchdog.install, line 71 - Install file for Role watchdog.
Code
function role_watchdog_uninstall() {
db_delete('variable')
->condition('name', 'role_watchdog_%', 'LIKE')
->execute();
cache_clear_all('variables', 'cache');
drupal_set_message(t('Role watchdog table and variables removed.'));
}