function domain_test_domain_update in Domain Access 7.3
Implements hook_domain_update().
Change the sitename value to 'testfoo'.
File
- tests/
domain_test.domain.inc, line 37 - Domain hook tests.
Code
function domain_test_domain_update($domain, $form_values = array()) {
if ($domain['sitename'] == 'foobar') {
db_update('domain')
->fields(array(
'sitename' => 'testfoo',
))
->condition('domain_id', $domain['domain_id'])
->execute();
}
}