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