function workspace_uninstall in Workspace 7
Same name and namespace in other branches
- 6 workspace.install \workspace_uninstall()
Implements hook_uninstall().
File
- ./
workspace.install, line 11 - workspace install, update and uninstall functions.
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.
}