function acquia_lift_command_goal_updates in Acquia Lift Connector 7
Same name and namespace in other branches
- 7.2 acquia_lift.module \acquia_lift_command_goal_updates()
Returns an AJAX command to force the update of goals data within a campaign.
Parameters
string $agent_name: The machine name for the campaign to update goal data.
1 call to acquia_lift_command_goal_updates()
- acquia_lift_goal_delete_complete_callback in ./
acquia_lift.admin.unibar.inc - Ctools form processing complete handler for deletion of a goal.
File
- ./
acquia_lift.module, line 2933 - acquia_lift.module Provides Acquia Lift-specific personalization functionality.
Code
function acquia_lift_command_goal_updates($agent_name) {
$settings = acquia_lift_get_campaign_details(variable_get('acquia_lift_unibar_allow_status_change', TRUE));
return array(
'command' => 'acquia_lift_goal_updates',
'data' => array(
'campaigns' => array(
$agent_name => $settings[$agent_name],
),
),
);
}