function simple_access_uninstall in Simple Access 5.2
Same name and namespace in other branches
- 5 simple_access.install \simple_access_uninstall()
- 6.2 simple_access.install \simple_access_uninstall()
- 7.2 simple_access.install \simple_access_uninstall()
Implementation of hook_uninstall()
File
- ./
simple_access.install, line 106 - Simple Access Installation file
Code
function simple_access_uninstall() {
db_query('DROP TABLE {simple_access_groups}');
db_query('DROP TABLE {simple_access_owner}');
db_query('DROP TABLE {simple_access_roles}');
db_query('DROP TABLE {simple_access_node}');
db_query('DROP TABLE {simple_access_profiles}');
db_query('DROP TABLE {simple_access_profiles_access}');
db_query('DROP TABLE {simple_access_profiles_node}');
variable_del('sa_display');
variable_del('sa_showgroups');
drupal_set_message(t('simple access has been uninstalled'));
}