You are here

function total_control_add_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_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
Implements hook_form_alter().

File

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

Code

function total_control_add_type_submit($form, &$form_state) {

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