You are here

function acquia_lift_goal_delete_complete_callback in Acquia Lift Connector 7

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

Ctools form processing complete handler for deletion of a goal.

See also

acquia_lift_create_ctools_form().

1 string reference to 'acquia_lift_goal_delete_complete_callback'
acquia_lift_goal_delete_modal_callback in ./acquia_lift.admin.unibar.inc
Page callback to generate a goal delete confirm modal window.

File

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

Code

function acquia_lift_goal_delete_complete_callback($form, $form_state) {
  $message = $form_state['acquia_lift']['goal_delete_success'] ? t('The goal has been deleted.') : t('There was a problem deleting the goal.');
  $commands = array(
    ctools_modal_command_dismiss(),
    acquia_lift_command_messagebox($message, 10),
    acquia_lift_command_goal_updates($form_state['values']['agent_name']),
    acquia_lift_command_process_queue(),
  );
  return $commands;
}