function resource_menu in D7 Media 6
Implements hook_menu().
File
- resource/
resource.module, line 55 - Resource API for Drupal, a replacement for files.
Code
function resource_menu() {
$items = array();
// Menu items that are basically just menu blocks.
$items['admin/settings/resource'] = array(
'title' => 'Resource configuration',
'description' => 'Configure Resource and stream handler settings.',
'page callback' => 'resource_settings_overview',
'access arguments' => array(
'access administration pages',
),
'file' => 'resource.admin.inc',
);
$items['admin/settings/resource/public'] = array(
'title' => 'Public File (public://) settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'resource_settings_public_form',
),
'access arguments' => array(
'administer resources',
),
'file' => 'resource.admin.inc',
);
$items['admin/settings/resource/private'] = array(
'title' => 'Private File (private://) settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'resource_settings_private_form',
),
'access arguments' => array(
'administer resources',
),
'file' => 'resource.admin.inc',
);
return $items;
}