function content_type_groups_group_delete_confirm_submit in Content type groups 7.2
Same name and namespace in other branches
- 7 content_type_groups.admin.inc \content_type_groups_group_delete_confirm_submit()
Process content type group delete confirm submissions.
File
- ./
content_type_groups.admin.inc, line 221 - Admin page callback file for the Content type groups module.
Code
function content_type_groups_group_delete_confirm_submit($form, &$form_state) {
//$group = new ContentTypeGroup($form_state['values']['type']);
$group
->delete();
$t_args = array(
'%name' => $form_state['values']['name'],
);
drupal_set_message(t('The content type %name has been deleted.', $t_args));
watchdog('content type groups', 'Deleted content type groupv%name.', $t_args, WATCHDOG_NOTICE);
$form_state['redirect'] = 'admin/structure/types/groups';
}