function restrict_by_ip_uninstall in Restrict Login or Role Access by IP Address 6
Same name and namespace in other branches
- 5 restrict_by_ip.install \restrict_by_ip_uninstall()
- 6.3 restrict_by_ip.install \restrict_by_ip_uninstall()
- 6.2 restrict_by_ip.install \restrict_by_ip_uninstall()
- 7.3 restrict_by_ip.install \restrict_by_ip_uninstall()
Implementation of hook_uninstall().
File
- ./
restrict_by_ip.install, line 51
Code
function restrict_by_ip_uninstall() {
db_query('DROP TABLE {restrict_by_ip}');
variable_del('restrict_by_ip_error_page');
// clear the cache tables (see http://drupal.org/node/64279#comment-211282)
cache_clear_all('*', 'cache', TRUE);
cache_clear_all('*', 'cache_filter', TRUE);
cache_clear_all('*', 'cache_menu', TRUE);
cache_clear_all('*', 'cache_page', TRUE);
watchdog('restrict_by_ip', 'restrict_by_ip module removed');
}