You are here

function acquia_lift_command_variation_toggle in Acquia Lift Connector 7.2

Returns an AJAX command to toggle the variation element selector.

Parameters

bool $start: True to start the variation mode, FALSE to stop it.

Return value

array The command to be included in AJAX response.

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

Code

function acquia_lift_command_variation_toggle($start = TRUE) {
  return array(
    'command' => 'acquia_lift_variation_toggle',
    'data' => array(
      'start' => $start,
    ),
  );
}