You are here

function domain_delete in Domain Access 7.2

Same name and namespace in other branches
  1. 5 domain_admin.inc \domain_delete()
  2. 7.3 domain.module \domain_delete()

Delete a domain record.

Parameters

$domain: The domain record being deleted.

$values: An array of values passed by a form submit, if any.

1 call to domain_delete()
domain_delete_form_submit in ./domain.admin.inc
Implement domain_delete_form submit hook.
3 string references to 'domain_delete'
domain_batch_form_submit in ./domain.admin.inc
FormsAPI for saving batch form actions.
domain_conf_domainbatch in domain_conf/domain_conf.module
Implements hook_domainbatch()
domain_theme_domainbatch in domain_theme/domain_theme.module
Implements hook_domainbatch()

File

./domain.module, line 795
Core module functions for the Domain Access suite.

Code

function domain_delete($domain, $values = array()) {

  // Delete the record.
  db_delete('domain')
    ->condition('domain_id', $domain['domain_id'])
    ->execute();

  // Let other modules act.
  module_invoke_all('domainupdate', 'delete', $domain, $values);

  // Notify that node access needs to be rebuilt.
  node_access_needs_rebuild(TRUE);
}