You are here

function acquia_lift_goal_type_create_modal_callback in Acquia Lift Connector 7

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

Page callback to generate the ctools modal form to create a goal of a specific type.

Parameters

$type: The type of goal to create. Current supported choices: 'existing', 'page' Note that element is handled via JavaScript.

$ajax: Indicates if AJAX is supported.

1 string reference to 'acquia_lift_goal_type_create_modal_callback'
acquia_lift_menu in ./acquia_lift.module
Implements hook_menu().

File

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

Code

function acquia_lift_goal_type_create_modal_callback($type, $ajax) {
  acquia_lift_create_ctools_form(t('Add a goal'), 'acquia_lift_goal_type_create_form', array(
    'type' => $type,
  ), 'acquia_lift_goal_type_create_completed_callback');
}