You are here

function akamai_menu in Akamai 7.3

Same name and namespace in other branches
  1. 6.2 akamai.module \akamai_menu()
  2. 6 akamai.module \akamai_menu()
  3. 7 akamai.module \akamai_menu()
  4. 7.2 akamai.module \akamai_menu()

Implements hook_menu().

File

./akamai.module, line 44
Integration with Akamai CDN CCU API.

Code

function akamai_menu() {
  $items = array();
  $items['admin/config/system/akamai'] = array(
    'title' => 'Akamai',
    'description' => 'Akamai CDN settings.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'akamai_settings_form',
    ),
    'access arguments' => array(
      'administer akamai',
    ),
    'file' => 'akamai.admin.inc',
  );
  $items['admin/config/system/akamai/settings'] = array(
    'title' => 'Settings',
    'weight' => -10,
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/config/system/akamai/purge'] = array(
    'title' => 'Manual Purge (CCU)',
    'description' => 'Admin interface to manually purge URLs from Akamai via the Content Control Utility (CCU) API.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'akamai_manual_purge_form',
    ),
    'access arguments' => array(
      'purge akamai cache',
    ),
    'file' => 'akamai.admin.inc',
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/reports/akamai'] = array(
    'title' => 'Akamai purge requests',
    'description' => 'Provides status of purge requests.',
    'page callback' => 'akamai_purge_request_list',
    'access arguments' => array(
      'purge akamai cache',
    ),
    'file' => 'akamai.admin.inc',
  );
  $items['admin/reports/akamai/%'] = array(
    'title' => 'Akamai purge requests',
    'description' => 'Provides information about an individual purge request.',
    'page callback' => 'akamai_purge_request_detail',
    'page arguments' => array(
      3,
    ),
    'access arguments' => array(
      'purge akamai cache',
    ),
    'file' => 'akamai.admin.inc',
  );
  return $items;
}