function domain_source_domain_reassign in Domain Access 7.3
Implements hook_domain_reassign().
File
- domain_source/
domain_source.domain.inc, line 44 - Domain hooks for Domain Source.
Code
function domain_source_domain_reassign($old_domain, $new_domain, $table) {
// On node changes, update {domain_source}.
if ($table == 'domain_access') {
db_update('domain_source')
->fields(array(
'domain_id' => $new_domain['domain_id'],
))
->condition('domain_id', $old_domain['domain_id'])
->execute();
}
}