function domain_delete_form_submit in Domain Access 7.2
Same name and namespace in other branches
- 5 domain_admin.inc \domain_delete_form_submit()
- 6.2 domain.admin.inc \domain_delete_form_submit()
- 7.3 domain.admin.inc \domain_delete_form_submit()
Implement domain_delete_form submit hook.
File
- ./
domain.admin.inc, line 581 - Administration functions for the domain module.
Code
function domain_delete_form_submit($form, &$form_state) {
// Delete the domain.
domain_delete($form_state['values']['domain'], $form_state['values']);
// Hide the message from the Domain User module.
if (empty($form_state['values']['domain_arguments']['user_submitted'])) {
drupal_set_message(t('Domain record deleted.'));
$form_state['redirect'] = 'admin/structure/domain/view';
}
}