You are here

function upload_menu in Drupal 6

Same name and namespace in other branches
  1. 4 modules/upload.module \upload_menu()
  2. 5 modules/upload/upload.module \upload_menu()

Implementation of hook_menu().

File

modules/upload/upload.module, line 78
File-handling and attaching files to nodes.

Code

function upload_menu() {
  $items['upload/js'] = array(
    'page callback' => 'upload_js',
    'access arguments' => array(
      'upload files',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/settings/uploads'] = array(
    'title' => 'File uploads',
    'description' => 'Control how files may be attached to content.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'upload_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'upload.admin.inc',
  );
  return $items;
}