You are here

function acquia_lift_personalize_campaign_wizard_validate in Acquia Lift Connector 7.2

Validation for the entire campaign wizard (all steps).

4 string references to 'acquia_lift_personalize_campaign_wizard_validate'
acquia_lift_personalize_campaign_wizard_goals_alter in ./acquia_lift.admin.wizard.inc
Alter the goals form.
acquia_lift_personalize_campaign_wizard_review_alter in ./acquia_lift.admin.wizard.inc
Alter hook for the review portion of the campaign wizard.
acquia_lift_personalize_campaign_wizard_targeting_alter in ./acquia_lift.admin.wizard.inc
Alter hook for the targeting portion of the campaign wizard.
acquia_lift_personalize_campaign_wizard_variations_alter in ./acquia_lift.admin.wizard.inc
Alter hook for the variations portions of the campaign wizard.

File

./acquia_lift.admin.wizard.inc, line 1739
acquia_lift.admin.wizard.inc Functions specific to the Acquia Lift alteration of the campaign creation wizard.

Code

function acquia_lift_personalize_campaign_wizard_validate(&$form, &$form_state) {
  $step_name = $form_state['storage']['step'];

  // Do not validate if the form is disabled.
  if (!empty($form[$step_name]['#disabled'])) {
    return;
  }

  // Run any base form validation if available.
  module_load_include('inc', 'personalize', 'personalize.admin.campaign');
  if (function_exists('personalize_campaign_wizard_validate_base')) {
    personalize_campaign_wizard_validate_base($form, $form_state);
  }
  $function = 'acquia_lift_personalize_campaign_wizard_' . $step_name . '_validate';
  if (function_exists($function)) {
    $function($form, $form_state);
  }
}