function domain_source_domainupdate in Domain Access 5
Same name and namespace in other branches
- 6.2 domain_source/domain_source.module \domain_source_domainupdate()
- 7.2 domain_source/domain_source.module \domain_source_domainupdate()
Implement hook_domainupdate()
When deleting domain records, we remove all traces from the {domain_source} table.
1 string reference to 'domain_source_domainupdate'
- domain_url_rewrite_outbound in ./
settings_custom_url.inc - Forces absolute paths for domains when needed.
File
- domain_source/
domain_source.module, line 202 - Creates a source domain for linking to content from other domains.
Code
function domain_source_domainupdate($op, $domain = array(), $edit = array()) {
if ($op == 'delete' && $domain['domain_id'] > 0) {
db_query("DELETE FROM {domain_source} WHERE domain_id = %d", $domain['domain_id']);
}
}