function acquia_lift_goal_rename_complete_callback in Acquia Lift Connector 7
Same name and namespace in other branches
- 7.2 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 1351 - acquia_lift.admin.unibar.inc
Code
function acquia_lift_goal_rename_complete_callback($form, $form_state) {
$settings = acquia_lift_get_campaign_details(variable_get('acquia_lift_unibar_allow_status_change', TRUE));
$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;
}