You are here

function domain_alias_domainupdate in Domain Access 6.2

Same name and namespace in other branches
  1. 7.2 domain_alias/domain_alias.module \domain_alias_domainupdate()

Implement hook_domainupdate().

When a {domain} entry is deleted also delete all related {domain_alias} entries.

File

domain_alias/domain_alias.module, line 312
Interface for advanced domain matching for Domain Access.

Code

function domain_alias_domainupdate($op, $domain = array(), $form_state = array()) {
  switch ($op) {
    case 'delete':
      db_query("DELETE FROM {domain_alias} WHERE domain_id = '%d'", $domain['domain_id']);
      break;
  }
}