function hook_domain_update in Domain Access 7.3
Notify other modules that we have updated 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
2 functions implement hook_domain_update()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- domain_nav_domain_update in domain_nav/
domain_nav.module - Implements hook_domain_update()
- domain_test_domain_update in tests/
domain_test.domain.inc - Implements hook_domain_update().
File
- ./
domain.api.php, line 75 - API documentation file.
Code
function hook_domain_update($domain, $form_values = array()) {
db_update('mytable')
->fields(array(
'status' => 1,
))
->condition('domain_id', $domain['domain_id'])
->execute();
}