You are here

function acquia_purge_menu in Acquia Purge 6

Same name and namespace in other branches
  1. 7 acquia_purge.module \acquia_purge_menu()

Implements hook_menu().

File

./acquia_purge.module, line 93
Acquia Purge, Top-notch Varnish purging on Acquia Cloud!

Code

function acquia_purge_menu() {
  $items = array();

  // Declare the hidden AJAX processor path which we call client side.
  $items['acquia_purge_ajax_processor'] = array(
    'title' => 'Acquia Purge AJAX processor',
    'page callback' => 'acquia_purge_ajax_processor',
    'access callback' => '_acquia_purge_queue_is_user_purging',
    'file' => 'acquia_purge.admin.inc',
    'type' => MENU_CALLBACK,
  );

  // Allow administrators to manually queue purge paths on the performance page.
  $items['admin/settings/performance/manualpurge'] = array(
    'type' => MENU_LOCAL_TASK,
    'title' => 'Manually purge',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'acquia_purge_manualpurge_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'acquia_purge.admin.inc',
    'weight' => 40,
  );
  return $items;
}