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