function _acquia_lift_personalize_campaign_wizard_goal_element_form in Acquia Lift Connector 7.2
Form to select a page for a new element goal.
Return value
array The form element to enter a path to the page for an element goal.
NOTE: limit_validation_errors is not set for either of this submit buttons due to a requirement to actually save the page content before exiting for element variation actions.
1 call to _acquia_lift_personalize_campaign_wizard_goal_element_form()
- acquia_lift_personalize_campaign_wizard_goals_alter in ./
acquia_lift.admin.wizard.inc - Alter the goals form.
File
- ./
acquia_lift.admin.wizard.inc, line 3056 - acquia_lift.admin.wizard.inc Functions specific to the Acquia Lift alteration of the campaign creation wizard.
Code
function _acquia_lift_personalize_campaign_wizard_goal_element_form() {
global $base_url;
$form = array();
$form['url'] = array(
'#type' => 'textfield',
'#element_validate' => array(
'visitor_actions_form_element_path_validate',
),
'#title' => t('Page where element exists'),
'#allow_dynamic' => FALSE,
'#allow_external' => TRUE,
'#field_prefix' => $base_url . '/',
);
$form['navigate'] = array(
'#type' => 'submit',
'#submit' => array(
'acquia_lift_personalize_campaign_wizard_goals_submit_element_add',
),
'#value' => t('Go'),
);
return $form;
}