You are here

function _eloqua_is_valid_component_type in Eloqua 6

Tests whether the given component type is valid for Eloqua Integration

Parameters

$test_type:

Return value

bool

1 call to _eloqua_is_valid_component_type()
eloqua_form_webform_component_edit_form_alter in ./eloqua.module
Implementatation of hook_form_FORM_ID_alter(). This function is reponsible for adding the form-id mapping values to the Component add/edit page Note: this isn't used for the fieldset type.

File

./eloqua.module, line 84

Code

function _eloqua_is_valid_component_type($test_type) {
  $invalid_types = _eloqua_webform_component_get_exempt_types();
  $result = in_array($test_type, $invalid_types);
  $result = !$result;
  return $result;
}