You are here

function acquia_lift_command_variation_preview in Acquia Lift Connector 7.2

Same name and namespace in other branches
  1. 7 acquia_lift.module \acquia_lift_command_variation_preview()

Returns an AJAX command to preview a specific option set option (variation).

Parameters

string $agent_name: The name of the campaign/agent to which the variation belongs.

int $osid: The id of the option set to which the variation belongs.

string $option_id: The id of the variation to display.

Return value

array The command to be included in AJAX response.

1 call to acquia_lift_command_variation_preview()
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 3121
acquia_lift.module Provides Acquia Lift-specific personalization functionality.

Code

function acquia_lift_command_variation_preview($agent_name, $osid, $option_id) {
  return array(
    'command' => 'acquia_lift_variation_preview',
    'data' => array(
      'agentName' => $agent_name,
      'osid' => personalize_stringify_osid($osid),
      'optionId' => $option_id,
    ),
  );
}