You are here

function total_control_remove_type_submit in Total Control Admin Dashboard 7.2

Same name and namespace in other branches
  1. 6.2 includes/total_control.inc \total_control_remove_type_submit()

Submit function for delete content type confirm form

Parameters

$form: The form triggering the display to be added

$form_state: The state of the form when the request is made

1 string reference to 'total_control_remove_type_submit'
total_control_form_alter in ./total_control.module
Implements hook_form_alter().

File

includes/total_control.inc, line 35
Helper functions for total control.

Code

function total_control_remove_type_submit($form, &$form_state) {

  // Get the type name.
  $machine_type = $form_state['values']['type'];
  total_control_views_delete_page_display($machine_type);
  total_control_views_delete_pane_display($machine_type);
}