function acquia_lift_command_variation_edit in Acquia Lift Connector 7.2
Returns an AJAX command to add or edit an element variation.
Parameters
stdClass $option_set: The option set that owns the variation
$option_id: The option id to edit or NULL if creating a new variation within the option set.
Return value
array The command to be included in AJAX response.
1 call to acquia_lift_command_variation_edit()
- acquia_lift_element_variation_details_form_ajax_callback in ./
acquia_lift.admin.unibar.inc - Responds to AJAX submission of a variation type details page.
File
- ./
acquia_lift.module, line 3143 - acquia_lift.module Provides Acquia Lift-specific personalization functionality.
Code
function acquia_lift_command_variation_edit($option_set, $option_id = NULL) {
return array(
'command' => 'acquia_lift_variation_edit',
'data' => array(
'variationType' => $option_set->data['personalize_elements_type'],
'selector' => $option_set->data['personalize_elements_selector'],
'agentName' => $option_set->agent,
'variationIndex' => empty($option_id) ? -1 : $option_id,
'osid' => $option_set->osid,
),
);
}