You are here

function acquia_lift_settings_update in Acquia Lift Connector 7

Same name and namespace in other branches
  1. 7.2 acquia_lift.module \acquia_lift_settings_update()

Returns updated campaign settings that can be used to update the client interface in response to asynchronous events such as queue synchronization.

In the future it could become necessary, useful, to pass parameters to indicate the type of data to include. The only current need is to return the updated campaign basic information.

1 string reference to 'acquia_lift_settings_update'
acquia_lift_menu in ./acquia_lift.module
Implements hook_menu().

File

./acquia_lift.module, line 2805
acquia_lift.module Provides Acquia Lift-specific personalization functionality.

Code

function acquia_lift_settings_update() {
  $commands = array(
    ajax_command_settings(array(
      'acquia_lift' => array(
        'campaigns' => acquia_lift_get_campaign_details(variable_get('acquia_lift_unibar_allow_status_change', TRUE)),
      ),
    ), TRUE),
  );
  return personalize_ajax_commands_deliver($commands, TRUE);
}