function acquia_lift_campaign_flow_cancel in Acquia Lift Connector 7
Same name and namespace in other branches
- 7.2 acquia_lift.admin.unibar.inc \acquia_lift_campaign_flow_cancel()
AJAX callback to cancel the campaign creation flow.
Parameters
$ajax: Indicates if AJAX is supported.
1 string reference to 'acquia_lift_campaign_flow_cancel'
- acquia_lift_menu in ./
acquia_lift.module - Implements hook_menu().
File
- ./
acquia_lift.admin.unibar.inc, line 1699 - acquia_lift.admin.unibar.inc
Code
function acquia_lift_campaign_flow_cancel($ajax = NULL) {
if (!$ajax) {
// We should never be here out of ajax context.
return MENU_NOT_FOUND;
}
ctools_include('modal');
ctools_include('ajax');
$commands = array(
ctools_modal_command_dismiss(),
);
print ajax_render($commands);
}