You are here

function eloqua_form_webform_configure_form_validate in Eloqua 6

Form Validation Function

_state

Parameters

$form:

Return value

unknown_type

1 string reference to 'eloqua_form_webform_configure_form_validate'
eloqua_form_webform_configure_form_alter in ./eloqua.module
Implementation of hook_form_FORM_ID_alter().

File

./eloqua.module, line 230

Code

function eloqua_form_webform_configure_form_validate($form, $form_state) {
  $values = $form_state['values'];
  if ($values['elq_enabled']) {
    if (empty($values['elq_form_name'])) {
      form_set_error('elq_form_name', t('The Eloqua Form Name must be set if the form is to be eloqua-enabled.' . ' This can only contain the characters a-zA-Z and _'));
    }
  }
}