function domain_source_update_7300 in Domain Access 7.3
Remove references to row 0.
File
- domain_source/
domain_source.install, line 39 - Install file for the Domain Source module
Code
function domain_source_update_7300(&$sandbox) {
$default_id = db_query("SELECT domain_id FROM {domain} WHERE is_default = 1")
->fetchField();
db_update('domain_source')
->fields(array(
'domain_id' => $default_id,
))
->condition('domain_id', 0)
->execute();
return t('Domain Source zero records removed.');
}