You are here

function deploy_remote_cc_menu in Deploy - Content Staging 7.3

Implements hook_menu().

File

modules/deploy_remote_cc/deploy_remote_cc.module, line 11
Remote Cache clear module.

Code

function deploy_remote_cc_menu() {
  $items = array();
  $items['admin/structure/deploy/plans/list/%ctools_export_ui/cache_clear'] = array(
    'title' => 'Clear Remote Caches',
    'description' => 'Clears remote server caches',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'deploy_remote_cc_form',
      5,
    ),
    'access arguments' => array(
      'clear remote caches',
    ),
    'weight' => 1000,
    'file' => 'includes/deploy_remote_cc.pages.inc',
    'type' => MENU_LOCAL_ACTION,
  );
  $items['admin/config/content/deploy_remote_cc'] = array(
    'title' => 'Configure clear remote caches endpoints',
    'description' => 'Configurations of clear remote caches endpoints',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'deploy_remote_cc_endpoint_settings',
    ),
    'file' => 'includes/deploy_remote_cc.admin.inc',
    'access arguments' => array(
      'administer site configuration',
    ),
  );
  return $items;
}