function node_type_delete_confirm_submit
Process content type delete confirm submissions.
See also
File
-
modules/
node/ content_types.inc, line 439
Code
function node_type_delete_confirm_submit($form, &$form_state) {
node_type_delete($form_state['values']['type']);
variable_del('node_preview_' . $form_state['values']['type']);
$t_args = array(
'%name' => $form_state['values']['name'],
);
drupal_set_message(t('The content type %name has been deleted.', $t_args));
watchdog('node', 'Deleted content type %name.', $t_args, WATCHDOG_NOTICE);
node_types_rebuild();
menu_rebuild();
$form_state['redirect'] = 'admin/structure/types';
return;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.