You are here

function workspace_uninstall in Workspace 6

Same name and namespace in other branches
  1. 7 workspace.install \workspace_uninstall()

Implementation of hook_uninstall().

File

./workspace.install, line 11
Installation file for "Workspace" module.

Code

function workspace_uninstall() {
  variable_del('workspace_user_profile_link');
  $roles = user_roles();
  foreach ($roles as $rid => $name) {
    variable_del('workspace_user_profile_' . $rid);
  }

  // Currently uninstalling leaves per-user workspace data
  // inside the data field of the user table. A nice batch
  // API to remove that data should go here.
}