function cdn_menu in CDN 6.2
Same name and namespace in other branches
- 5 cdn.module \cdn_menu()
- 6 cdn.module \cdn_menu()
- 7.2 cdn.module \cdn_menu()
Implementation of hook_menu().
File
- ./
cdn.module, line 254
Code
function cdn_menu() {
// Admin UI.
$items['admin/settings/cdn'] = array(
'title' => 'CDN',
'description' => 'Configure CDN integration.',
'access arguments' => array(
CDN_PERM_ADMIN,
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'cdn_admin_general_settings_form',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'cdn.admin.inc',
);
$items['admin/settings/cdn/general'] = array(
'title' => 'General',
'description' => 'General settings.',
'access arguments' => array(
CDN_PERM_ADMIN,
),
'weight' => -10,
'type' => MENU_DEFAULT_LOCAL_TASK,
'file' => 'cdn.admin.inc',
);
$items['admin/settings/cdn/details'] = array(
'title' => 'Details',
'access arguments' => array(
CDN_PERM_ADMIN,
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'cdn_admin_details_form',
),
'weight' => -8,
'type' => MENU_LOCAL_TASK,
'file' => 'cdn.admin.inc',
);
$items['admin/settings/cdn/other'] = array(
'title' => 'Other',
'description' => 'Other settings.',
'access arguments' => array(
CDN_PERM_ADMIN,
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'cdn_admin_other_settings_form',
),
'weight' => -4,
'type' => MENU_LOCAL_TASK,
'file' => 'cdn.admin.inc',
);
// Statistics: file touch support.
$items['admin/cdn/touch/%'] = array(
'title' => 'Touch file',
'description' => 'Touch a file to force a resync with File Conveyor.',
'access arguments' => array(
CDN_PERM_TOUCH,
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'cdn_touch_file_form',
3,
),
'type' => MENU_CALLBACK,
'file' => 'cdn.stats.inc',
);
// Origin Pull mode's Far Future expiration support.
$items['cdn/farfuture/%/%/%cdn_basic_farfuture_tail'] = array(
'title' => 'Download a far futured file',
'access callback' => TRUE,
'page callback' => 'cdn_basic_farfuture_download',
'page arguments' => array(
2,
3,
4,
),
'type' => MENU_CALLBACK,
'load arguments' => array(
'%map',
'%index',
),
'file' => 'cdn.basic.farfuture.inc',
);
$items['cdn/farfuture/reverse-proxy-test/%'] = array(
'title' => 'Far Future reverse proxy test',
'access callback' => TRUE,
'page callback' => 'cdn_basic_farfuture_reverseproxy_test',
'page arguments' => array(
3,
),
'type' => MENU_CALLBACK,
'file' => 'cdn.basic.farfuture.inc',
);
return $items;
}