You are here

function advuser_uninstall in Advanced User 5.2

Same name and namespace in other branches
  1. 6.3 advuser.install \advuser_uninstall()
  2. 6.2 advuser.install \advuser_uninstall()
  3. 7.3 advuser.install \advuser_uninstall()

File

./advuser.install, line 40

Code

function advuser_uninstall() {
  $delete_variables = "DELETE FROM {variable} WHERE name LIKE 'ADVUSER_%'";
  $remove_system = "DELETE FROM {system} WHERE name = 'advuser'";
  db_query($delete_variables);
  cache_clear_all('variables', 'cache');

  // Allow the user to remove the module from the file system but that
  // removal must happen before the module list is displayed again.
  db_query($remove_system);
}