You are here

function simple_access_uninstall in Simple Access 5

Same name and namespace in other branches
  1. 5.2 simple_access.install \simple_access_uninstall()
  2. 6.2 simple_access.install \simple_access_uninstall()
  3. 7.2 simple_access.install \simple_access_uninstall()

Implementation of hook_uninstall()

File

./simple_access.install, line 53

Code

function simple_access_uninstall() {
  db_query('DROP TABLE {simple_access_groups}');
  db_query('DROP TABLE {simple_access_roles}');
  db_query('DROP TABLE {simple_access_node}');
  variable_del('sa_display');
  variable_del('sa_showgroups');
  drupal_set_message(t('simple access has been uninstalled'));
}