function node_type_delete_confirm_submit

7.x content_types.inc node_type_delete_confirm_submit($form, &$form_state)
6.x content_types.inc node_type_delete_confirm_submit($form, &$form_state)

Process content type delete confirm submissions.

File

drupal-6.x/modules/node/content_types.inc, line 398
Content type editing UI.

Code

function node_type_delete_confirm_submit($form, &$form_state) {
  node_type_delete($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('menu', 'Deleted content type %name.', $t_args, WATCHDOG_NOTICE);

  node_types_rebuild();
  menu_rebuild();

  $form_state['redirect'] = 'admin/content/types';
  return;
}