You are here

function webform_localization_form_alter in Webform Localization 7.4

Implements hook_form_alter().

File

./webform_localization.module, line 868
Webform localization module.

Code

function webform_localization_form_alter(&$form, &$form_state, $form_id) {

  // n.b. We are not using hook_form_BASE_FORM_ID_alter(), as we need
  // to interact closely with other hook_form_alter() implementations.
  // @see webform_localization_module_implements_alter()
  if (strpos($form_id, 'webform_client_form_') !== 0) {
    return;
  }

  // Enhance webform's mollom support, to handle our 'single_webform' option.
  if (module_exists('mollom')) {
    _webform_localization_mollom_form_alter($form, $form_state, $form_id);
  }
}