1 node.types.inc | node_type_delete_confirm_submit($form, &$form_state) |
Process content type delete confirm submissions.
See also
File
- core/
modules/ node/ node.types.inc, line 872 - Content type editing user interface.
Code
function node_type_delete_confirm_submit($form, &$form_state) {
$type_name = $form_state['values']['type'];
node_type_delete($type_name);
backdrop_set_message(t('The content type %name has been deleted.', array('%name' => $type_name)));
watchdog('node', 'Deleted content type %name.', array('%name' => $type_name), WATCHDOG_NOTICE);
menu_rebuild();
$form_state['redirect'] = 'admin/structure/types';
return;
}