You are here

function total_control_create_content_type_edit_form_submit in Total Control Admin Dashboard 6.2

Same name and namespace in other branches
  1. 6 plugins/content_types/create.inc \total_control_create_content_type_edit_form_submit()
  2. 7.2 plugins/content_types/create.inc \total_control_create_content_type_edit_form_submit()

'Edit form' submit callback for the content type.

ctools_plugin_example_total_control_panel_pages_content_type_edit_form_submit. The submit form stores the data in $conf.

File

plugins/content_types/create.inc, line 136
create.inc

Code

function total_control_create_content_type_edit_form_submit(&$form, &$form_state) {
  foreach (array_keys($form_state['plugin']['defaults']) as $key) {
    $form_state['conf'][$key] = $form_state['values'][$key];
  }
}