You are here

function acquia_lift_personalize_campaign_wizard_base_alter in Acquia Lift Connector 7.2

Alter hook for the base campaign wizard form.

1 string reference to 'acquia_lift_personalize_campaign_wizard_base_alter'
acquia_lift_personalize_campaign_wizard_alter in ./acquia_lift.admin.wizard.inc
Basic handler for altering any part of the campaign wizard form.

File

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

Code

function acquia_lift_personalize_campaign_wizard_base_alter(&$form, &$form_state, $agent_data, $editable) {
  module_load_include('inc', 'acquia_lift', 'acquia_lift.admin');
  if ($editable) {

    // Make the campaign name a self-revealing text input.
    $form['agent_basic_info']['title']['#theme_wrappers'][] = 'acquia_lift_revealing_input';
  }
  else {
    $form['agent_basic_info']['title']['#disabled'] = TRUE;
  }
}