function acquia_lift_menu in Acquia Lift Connector 7.2
Same name and namespace in other branches
- 7.3 acquia_lift.module \acquia_lift_menu()
- 7 acquia_lift.module \acquia_lift_menu()
Implements hook_menu().
File
- ./
acquia_lift.module, line 24 - acquia_lift.module Provides Acquia Lift-specific personalization functionality.
Code
function acquia_lift_menu() {
$items = array();
$items['admin/config/content/personalize/acquia_lift'] = array(
'type' => MENU_LOCAL_TASK,
'title' => 'Acquia Lift',
'page callback' => 'acquia_lift_configuration_page',
'access arguments' => array(
'administer personalize configuration',
),
'file' => 'acquia_lift.admin.inc',
);
$items['admin/acquia_lift'] = array(
'title' => 'Acquia Lift',
'description' => 'Manage Acquia Lift personalizations.',
'position' => 'right',
'weight' => 0,
'page callback' => 'acquia_lift_root_page',
'access arguments' => array(
'manage personalized content',
),
'file' => 'acquia_lift.ui.inc',
);
$items['acquia_lift/controls/assets'] = array(
'page callback' => 'acquia_lift_controls_assets_callback',
'access arguments' => array(
'manage personalized content',
),
'delivery callback' => 'ajax_deliver',
'theme callback' => 'ajax_base_page_theme',
'type' => MENU_CALLBACK,
'file' => 'acquia_lift.ui.inc',
);
// Ajax callback to provide updated campaign settings to JavaScript.
$items['acquia_lift/settings'] = array(
'type' => MENU_CALLBACK,
'page callback' => 'acquia_lift_settings_update',
'access arguments' => array(
'manage personalized content',
),
'delivery callback' => 'ajax_deliver',
'theme callback' => 'ajax_base_page_theme',
'type' => MENU_CALLBACK,
);
// Ajax callback to generate report data.
$items['acquia_lift/reports/conversions-by-goal'] = array(
'type' => MENU_CALLBACK,
'page callback' => 'acquia_lift_report_daily_conversions',
'access arguments' => array(
'manage personalized content',
),
'file' => 'acquia_lift.admin.inc',
);
// AJAX callback to cancel a modal creation flow.
$items['admin/structure/acquia_lift/cancel/%ctools_js'] = array(
'page callback' => 'acquia_lift_campaign_flow_cancel',
'page arguments' => array(
4,
),
'access arguments' => array(
'manage personalized content',
),
'type' => MENU_CALLBACK,
'file' => 'acquia_lift.admin.unibar.inc',
'theme callback' => 'ajax_base_page_theme',
);
// AJAX callback to add a new variation set to a campaign.
$items['admin/structure/acquia_lift/variations/add/%ctools_js'] = array(
'page callback' => 'acquia_lift_option_set_add_modal_callback',
'page arguments' => array(
5,
),
'access arguments' => array(
'manage personalized content',
),
'type' => MENU_CALLBACK,
'file' => 'acquia_lift.admin.unibar.inc',
'theme callback' => 'ajax_base_page_theme',
);
// AJAX callback to retrieve an element variation details form.
$items['admin/structure/acquia_lift/variation/%'] = array(
'page callback' => 'drupal_get_form',
'page arguments' => array(
'acquia_lift_element_variation_details_form',
4,
),
'access arguments' => array(
'manage personalized content',
),
'type' => MENU_CALLBACK,
'file' => 'acquia_lift.admin.unibar.inc',
'delivery callback' => 'ajax_deliver',
'theme callback' => 'ajax_base_page_theme',
);
// AJAX callback to delete an element variation.
$items['admin/structure/acquia_lift/variation/delete/%/%/%ctools_js'] = array(
'page callback' => 'acquia_lift_element_variation_delete_modal_callback',
'page arguments' => array(
5,
6,
),
'access arguments' => array(
'manage personalized content',
),
'type' => MENU_CALLBACK,
'file' => 'acquia_lift.admin.unibar.inc',
'theme callback' => 'ajax_base_page_theme',
);
// Ajax callback to open the add a goal selection in a modal window.
$items['admin/structure/acquia_lift/goal/add/%ctools_js'] = array(
'page callback' => 'acquia_lift_goal_create_modal_callback',
'page arguments' => array(
5,
),
'access arguments' => array(
'manage personalized content',
),
'type' => MENU_CALLBACK,
'file' => 'acquia_lift.admin.unibar.inc',
'theme callback' => 'ajax_base_page_theme',
);
// Ajax callback to create a goal of a specific type.
$items['admin/structure/acquia_lift/goal/add/%/%ctools_js'] = array(
'page callback' => 'acquia_lift_goal_type_create_modal_callback',
'page arguments' => array(
5,
6,
),
'access arguments' => array(
'manage personalized content',
),
'type' => MENU_CALLBACK,
'file' => 'acquia_lift.admin.unibar.inc',
'theme callback' => 'ajax_base_page_theme',
);
// Ajax callback to rename a goal.
$items['admin/structure/acquia_lift/goal/rename/%/%ctools_js'] = array(
'page callback' => 'acquia_lift_goal_rename_modal_callback',
'page arguments' => array(
5,
),
'access arguments' => array(
'manage personalized content',
),
'type' => MENU_CALLBACK,
'file' => 'acquia_lift.admin.unibar.inc',
'theme callback' => 'ajax_base_page_theme',
);
// AJAX callback to delete a goal.
$items['admin/structure/acquia_lift/goal/delete/%/%/%ctools_js'] = array(
'page callback' => 'acquia_lift_goal_delete_modal_callback',
'page arguments' => array(
5,
6,
),
'access arguments' => array(
'manage personalized content',
),
'type' => MENU_CALLBACK,
'file' => 'acquia_lift.admin.unibar.inc',
'theme callback' => 'ajax_base_page_theme',
);
$items['admin/structure/acquia_lift/visitor_action/%visitor_actions_custom'] = array(
'page callback' => 'acquia_lift_visitor_action_edit_modal_callback',
'page arguments' => array(
4,
),
'access arguments' => array(
'administer visitor actions',
),
'type' => MENU_CALLBACK,
'file' => 'acquia_lift.admin.unibar.inc',
'theme callback' => 'ajax_base_page_theme',
);
$items['admin/structure/personalize/manage/%personalize_agent/delete-all'] = array(
'title' => 'Delete an agent and all its components',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'acquia_lift_agent_delete_form',
4,
),
'type' => MENU_CALLBACK,
'file' => 'acquia_lift.admin.inc',
'access callback' => 'acquia_lift_agent_delete_access',
'access arguments' => array(
4,
),
);
$items['admin/structure/personalize/manage/%personalize_agent/audience/%/delete'] = array(
'title' => 'Delete target audience',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'acquia_lift_target_audience_delete',
4,
6,
),
'type' => MENU_CALLBACK,
'file' => 'acquia_lift.admin.wizard.inc',
'access callback' => 'acquia_lift_target_access',
'access arguments' => array(
4,
),
);
$items['admin/structure/personalize/manage/%personalize_agent/audience/%/complete'] = array(
'title' => 'Complete test for audience',
'page callback' => 'acquia_lift_target_complete_audience_modal_callback',
'page arguments' => array(
4,
6,
),
'type' => MENU_CALLBACK,
'file' => 'acquia_lift.admin.inc',
'access callback' => 'acquia_lift_target_access',
'access arguments' => array(
4,
),
);
$items['admin/structure/personalize/manage/%personalize_agent/targeting/revert'] = array(
'title' => 'Revert targeting changes',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'acquia_lift_confirm_revert_changes',
4,
),
'access callback' => 'acquia_lift_target_access',
'access arguments' => array(
4,
),
'type' => MENU_CALLBACK,
'file' => 'acquia_lift.admin.wizard.inc',
);
$items['admin/structure/personalize/manage/%personalize_agent/results'] = array(
'title callback' => 'personalize_campaign_title_callback',
'title arguments' => array(
4,
),
'page callback' => 'acquia_lift_report_wizard',
'page arguments' => array(
4,
),
'access callback' => 'acquia_lift_target_access',
'access arguments' => array(
4,
),
'file' => 'acquia_lift.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
return $items;
}