function cdn_menu in CDN 6
Same name and namespace in other branches
- 5 cdn.module \cdn_menu()
- 6.2 cdn.module \cdn_menu()
- 7.2 cdn.module \cdn_menu()
Implementation of hook_menu().
File
- ./
cdn.module, line 82 - Implementation of the core hooks, defines, public and private functions.
Code
function cdn_menu() {
$items['admin/settings/cdn'] = array(
'title' => 'CDN integration',
'description' => 'Configure various settings for CDN integration.',
'access arguments' => array(
'administer site configuration',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'cdn_admin_settings_form',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'cdn.admin.inc',
);
$items['admin/settings/cdn/settings'] = array(
'title' => 'Settings',
'access arguments' => array(
'administer site configuration',
),
'weight' => -10,
'type' => MENU_DEFAULT_LOCAL_TASK,
'file' => 'cdn.admin.inc',
);
$items['admin/settings/cdn/basic'] = array(
'title' => 'Basic mode',
'description' => 'Basic mode settings.',
'access arguments' => array(
'administer site configuration',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'cdn_admin_basic_settings_form',
),
'weight' => -8,
'type' => MENU_LOCAL_TASK,
'file' => 'cdn.admin.inc',
);
$items['admin/settings/cdn/advanced'] = array(
'title' => 'Advanced mode',
'description' => 'Advanced mode settings.',
'access arguments' => array(
'administer site configuration',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'cdn_admin_advanced_settings_form',
),
'weight' => -6,
'type' => MENU_LOCAL_TASK,
'file' => 'cdn.admin.inc',
);
$items['admin/settings/cdn/other'] = array(
'title' => 'Other',
'description' => 'Other settings.',
'access arguments' => array(
'administer site configuration',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'cdn_admin_other_settings_form',
),
'weight' => -4,
'type' => MENU_LOCAL_TASK,
'file' => 'cdn.admin.inc',
);
return $items;
}