You are here

function total_control_add_type_submit in Total Control Admin Dashboard 6.2

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

Submit function for content type 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_add_type_submit'
total_control_form_alter in ./total_control.module
Implementation of hook_form_alter().

File

includes/total_control.inc, line 19
total_control.inc

Code

function total_control_add_type_submit($form, &$form_state) {

  // get the type
  $machine_type = $form_state['values']['type'];
  $content_type = $form_state['values']['name'];
  total_control_views_add_display($machine_type, $content_type);
}