You are here

function _pardot_form_collapse in Pardot Integration 6

Same name and namespace in other branches
  1. 7 pardot.module \_pardot_form_collapse()

Collapses a submitted form into a flat array for Pardot.

_state

Parameters

unknown_type $form:

1 call to _pardot_form_collapse()
pardot_webform_submit in ./pardot.module
Submit handler added to webforms to store submissions for pardot.

File

./pardot.module, line 393
ParDot integration module.

Code

function _pardot_form_collapse($form, $form_state) {
  $result = array();
  $form_tree = !empty($form_state['values']['submitted_tree']) ? $form_state['values']['submitted_tree'] : $form_state['values']['submitted'];
  _pardot_form_collapse_form($form_tree, $form_state['values']['submitted'], $form['submitted'], $result);
  return $result;
}