function eloqua_form_webform_configure_form_submit in Eloqua 6
Submit handler for webform_configure_form
Parameters
$form array:
$form_state array:
1 string reference to 'eloqua_form_webform_configure_form_submit'
- eloqua_form_webform_configure_form_alter in ./
eloqua.module - Implementation of hook_form_FORM_ID_alter().
File
- ./
eloqua.module, line 246
Code
function eloqua_form_webform_configure_form_submit($form, &$form_state) {
// On a new form
$nid = $form_state['values']['nid'];
$values = $form_state['values'];
$webform = new stdClass();
$webform->{ELOQUA_WEBFORM_FIELD_NODE_ID} = $nid;
$webform->{ELOQUA_WEBFORM_FIELD_ACTIVE} = $values['elq_enabled'];
$webform->{ELOQUA_WEBFORM_FIELD_FORM_NAME} = $values['elq_form_name'];
$webform->{ELOQUA_WEBFORM_FIELD_DATA} = (object) array(
'process_every_page' => $values['elq_process_every_page'],
);
eloqua_webform_create($webform);
}