You are here

function hook_domain_delete in Domain Access 7.3

Notify other modules that we have deleted a domain.

Parameters

$domain: The domain record taken from {domain}, as an array.

$form_values: The form values processed by the form. Note that these are not editable since module_invoke_all() cannot pass by reference. They are passed in case some module needs to check the original form input.

Related topics

7 functions implement hook_domain_delete()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

domain_alias_domain_delete in domain_alias/domain_alias.domain.inc
Implements hook_domain_delete().
domain_conf_domain_delete in domain_conf/domain_conf.domain.inc
Implements hook_domain_delete().
domain_nav_domain_delete in domain_nav/domain_nav.module
Implements hook_domain_delete()
domain_source_domain_delete in domain_source/domain_source.domain.inc
Implements hook_domain_delete().
domain_test_domain_delete in tests/domain_test.domain.inc
Implements hook_domain_delete().

... See full list

1 invocation of hook_domain_delete()
domain_delete in ./domain.module
Delete a domain record.

File

./domain.api.php, line 96
API documentation file.

Code

function hook_domain_delete($domain, $form_values = array()) {
  db_delete('mytable')
    ->condition('domain_id', $domain['domain_id'])
    ->execute();
}