You are here

function acquia_lift_menu_alter in Acquia Lift Connector 7.2

Implements hook_menu_alter().

File

./acquia_lift.module, line 200
acquia_lift.module Provides Acquia Lift-specific personalization functionality.

Code

function acquia_lift_menu_alter(&$items) {

  // Change the access callback for the edit campaign page so that we can control
  // access to Lift campaigns.
  $items['admin/structure/personalize/manage/%personalize_agent/edit']['access callback'] = 'acquia_lift_campaign_edit_access';
  $items['admin/structure/personalize/manage/%personalize_agent/edit']['access arguments'] = array(
    4,
  );

  // Take over the rendering for the campaign listing page.
  $items['admin/structure/personalize']['page callback'] = 'acquia_lift_agent_list';
  $items['admin/structure/personalize']['file'] = 'acquia_lift.admin.inc';
  $items['admin/structure/personalize']['module'] = 'acquia_lift';
}