You are here

function stage_file_proxy_menu in Stage File Proxy 7

Implements hook_menu().

File

./stage_file_proxy.module, line 105
Stage File Proxy Module.

Code

function stage_file_proxy_menu() {
  $items = array();
  $items['admin/config/system/stage_file_proxy'] = array(
    'title' => 'Stage File Proxy settings',
    'description' => 'Administrative interface for the Stage File Proxy module',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'stage_file_proxy_admin',
    ),
    'access arguments' => array(
      'administer stage_file_proxy settings',
    ),
    'type' => MENU_NORMAL_ITEM,
  );

  // If fast_404_path_check is enabled, the files path must be registered in
  // the router table, otherwise fast_404 will abort the request before
  // stage_file_proxy can handle it.
  if (variable_get('fast_404_path_check', FALSE) && module_exists('fast_404')) {
    $items[_stage_file_proxy_file_dir() . '/%'] = array();
  }
  return $items;
}