You are here

function ctools_node_comment_form_content_type_edit_form_submit in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 plugins/content_types/node_context/node_comment_form.inc \ctools_node_comment_form_content_type_edit_form_submit()

File

plugins/content_types/node_context/node_comment_form.inc, line 61

Code

function ctools_node_comment_form_content_type_edit_form_submit(&$form, &$form_state) {

  // For each part of the form defined in the 'defaults' array set when you
  // defined the content type, copy the value from the form into the array
  // of items to be saved. We don't ever want to use
  // $form_state['conf'] = $form_state['values'] because values contains
  // buttons, form id and other items we don't want stored. CTools will handle
  // the actual form submission.
  foreach (array_keys($form_state['plugin']['defaults']) as $key) {
    $form_state['conf'][$key] = $form_state['values'][$key];
  }
}