function domain_source_domainupdate in Domain Access 7.2
Same name and namespace in other branches
- 5 domain_source/domain_source.module \domain_source_domainupdate()
- 6.2 domain_source/domain_source.module \domain_source_domainupdate()
Implements hook_domainupdate()
When deleting domain records, we remove all traces from the {domain_source} table.
File
- domain_source/
domain_source.module, line 425 - Creates a source domain for linking to content from other domains.
Code
function domain_source_domainupdate($op, $domain, $form_state = array()) {
if ($op == 'delete' && $domain['domain_id'] > 0) {
db_delete('domain_source')
->condition('domain_id', $domain['domain_id'])
->execute();
}
}