node_type_delete_confirm_submit

Versions
5
node_type_delete_confirm_submit($form_id, $form_values)
6 – 7
node_type_delete_confirm_submit($form, &$form_state)

Process content type delete confirm submissions.

Code

modules/node/content_types.inc, line 402

<?php
function node_type_delete_confirm_submit($form_id, $form_values) {
  node_type_delete($form_values['type']);

  $t_args = array('%name' => $form_values['name']);
  drupal_set_message(t('The content type %name has been deleted.', $t_args));
  watchdog('menu', t('Deleted content type %name.', $t_args), WATCHDOG_NOTICE);

  node_types_rebuild();
  menu_rebuild();

  return 'admin/content/types';
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.