function path_redirect_uninstall in Path redirect 5
Same name and namespace in other branches
- 6 path_redirect.install \path_redirect_uninstall()
Implementation of hook_uninstall().
File
- ./
path_redirect.install, line 44 - Install and uninstall schema and functions for the path_redirect module.
Code
function path_redirect_uninstall() {
// Remove tables and sequences.
db_query('DROP TABLE {path_redirect}');
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("DELETE FROM {sequences} WHERE name = '{path_redirect}_rid'");
break;
}
// Remove variables.
variable_del('path_redirect_allow_bypass');
variable_del('path_redirect_nodeapi_enabled');
variable_del('path_redirect_redirect_warning');
}