You are here

function node_revision_delete_content_type_configuration_delete_form_submit in Node Revision Delete 7.3

Form submit handler for the content type configuration delete form.

Parameters

array $form: The form element.

array $form_state: The form state.

File

./node_revision_delete.admin.inc, line 388

Code

function node_revision_delete_content_type_configuration_delete_form_submit(array $form, array &$form_state) {

  // Getting the content type machine name.
  $content_type_machine_name = arg(5);

  // Deleting the configuration.
  _node_revision_delete_delete_content_type_config($content_type_machine_name);

  // Searching the content type name.
  $content_types = node_type_get_names();
  $content_type_name = $content_types[$content_type_machine_name];

  // Printing a confirmation message.
  drupal_set_message(t('The Node Revision Delete configuration for the "@content_type" content type has been deleted.', array(
    '@content_type' => $content_type_name,
  )));
}