function domain_repair_form_submit in Domain Access 7.3
Repairs references to domain_id 0.
File
- ./
domain.admin.inc, line 1256 - Administration functions for the domain module.
Code
function domain_repair_form_submit($form, &$form_state) {
$tables = $form_state['values']['tables'];
$success = domain_update_zero_records($tables);
if ($success) {
drupal_set_message(t('!count database table(s) were updated.', array(
'!count' => count($form_state['values']['tables']),
)));
}
$form_state['redirect'] = 'admin/structure/domain';
}