You are here

function domain_user_disable in Domain Access 5

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

Implement hook_disable()

Deletes our user access masks.

File

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

Code

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