You are here

function acquia_lift_goal_rename_complete_callback in Acquia Lift Connector 7.2

Same name and namespace in other branches
  1. 7 acquia_lift.admin.unibar.inc \acquia_lift_goal_rename_complete_callback()

Ctools form processing complete handler for the renaming of a goal.

See also

acquia_lift_create_ctools_form().

1 string reference to 'acquia_lift_goal_rename_complete_callback'
acquia_lift_goal_rename_modal_callback in ./acquia_lift.admin.unibar.inc
Page callback to generate a goal rename modal window.

File

./acquia_lift.admin.unibar.inc, line 866
acquia_lift.admin.unibar.inc

Code

function acquia_lift_goal_rename_complete_callback($form, $form_state) {
  $settings = acquia_lift_get_campaign_details();
  $message = $form_state['acquia_lift']['goal_rename_success'] ? t('The goal has been renamed.') : t('There was a problem renaming the goal.');
  $commands = array(
    ctools_modal_command_dismiss(),
    ajax_command_settings(array(
      'acquia_lift' => array(
        'campaigns' => $settings,
      ),
    ), TRUE),
    acquia_lift_command_messagebox($message, 10),
  );
  return $commands;
}