When deleting a domain, the domain record is wiped from the db before hook_domainrecord() is fired.
Run the lookup first.
/**
* FormsAPI for domain_delete_form()
*
* @ingroup domain
*/
function domain_delete_form_submit($form_id, $form_values) {
// Run the lookup before we delete the row!
$domain = domain_lookup($form_values['domain_id']);
db_query("DELETE FROM {domain} WHERE domain_id = %d", $form_values['domain_id']);
// Let other modules act.
module_invoke_all('domainupdate', 'delete', $domain, $form_values);
drupal_set_message(t('Domain record deleted.'));
drupal_goto('admin/build/domain/view');
}
Comments
Comment #1
agentrickardCommitted to HEAD. In beta3 release.
Comment #2
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.