You are here

function flatcomments_existing_form_submit_1 in Flatcomments 6.2

Same name and namespace in other branches
  1. 6 flatcomments_existing/flatcomments_existing.admin.inc \flatcomments_existing_form_submit_1()

Form submit handler - first pass. Triggers second pass for confirmation.

1 string reference to 'flatcomments_existing_form_submit_1'
flatcomments_existing_form in flatcomments_existing/flatcomments_existing.admin.inc
This is a multi-pass form, the confirmation being second pass.

File

flatcomments_existing/flatcomments_existing.admin.inc, line 72
Administrative callbacks to provide the functionality of flattening previously existing comments.

Code

function flatcomments_existing_form_submit_1($form, &$form_state) {

  // Pass the submitted selection of content types to the second pass.
  // The existence of $form_state['storage'] triggers the second pass
  // of the form being rendered in our code, as well as in the FAPI.
  $form_state['storage']['types'] = $form_state['values']['types'];
}