You are here

function domain_user_disable in Domain Access 6.2

Same name and namespace in other branches
  1. 5 domain_user/domain_user.module \domain_user_disable()

Implement hook_disable()

Deletes our user access masks.

File

domain_user/domain_user.module, line 101
Creates unique subdomains for registered users.

Code

function domain_user_disable() {
  $rules = domain_user_rules(FALSE);
  if (!empty($rules)) {
    foreach ($rules as $rule) {
      db_query("DELETE FROM {access} WHERE mask = '%s'", $rule);
    }
  }
}