You are here

function eloqua_webform_create in Eloqua 6

Same name and namespace in other branches
  1. 7.2 eloqua_webform/eloqua_webform.inc \eloqua_webform_create()
  2. 7 eloqua_webform/eloqua_webform.inc \eloqua_webform_create()

Creates a webform settings from the database @hook eloqua_form_create

Parameters

$webform object:

Return value

boolean

1 call to eloqua_webform_create()
eloqua_form_webform_configure_form_submit in ./eloqua.module
Submit handler for webform_configure_form

File

./eloqua.inc, line 207

Code

function eloqua_webform_create($webform) {
  if (!is_object($webform)) {
    $type = gettype($webform);
    watchdog(ELOQUA_WATCHDOG_CATEGORY, t('Invalid argument sent to !module_name (!type).', array(
      '!module_name' => __FUNCTION__,
      '!type' => $type,
    )));
    return FALSE;
  }
  $result = _eloqua_webform_create($webform);
  if (!$result) {

    // if we were unable to create the payment plan.  Can't go on.
    return FALSE;
  }
  foreach (module_implements('eloqua_form_create') as $module_name) {
    $method = $module_name . '_eloqua_form_create';
    $method($webform);
  }
  _eloqua_webform_update($webform);
  return $result;
}