function crm_core_contact_ui_type_delete_confirm_submit in CRM Core 7
Submission callback for contact type delete
1 string reference to 'crm_core_contact_ui_type_delete_confirm_submit'
- crm_core_contact_ui_type_delete_confirm in modules/
crm_core_contact_ui/ crm_core_contact_ui.admin.inc - Given a contact type, present a form prompting for deletion of the contact type.
File
- modules/
crm_core_contact_ui/ crm_core_contact_ui.admin.inc, line 180 - Interface elements for adding, editing, and otherwise working with contact types.
Code
function crm_core_contact_ui_type_delete_confirm_submit($form, &$form_state) {
$crm_core_contact_type = $form_state['contact_type'];
crm_core_contact_type_delete($crm_core_contact_type->id);
$form_state['redirect'] = 'admin/structure/crm-core/contact-types';
drupal_set_message(t('Contact type deleted'));
}