function file_menu

Implements hook_menu().

File

drupal/core/modules/file/file.module, line 45
Defines a "managed_file" Form API field and a "file" field for Field module.

Code

function file_menu() {
  $items = array();
  $items['file/ajax'] = array(
    'page callback' => 'file_ajax_upload',
    'access arguments' => array(
      'access content',
    ),
    'theme callback' => 'ajax_base_page_theme',
    'type' => MENU_CALLBACK,
  );
  $items['file/progress'] = array(
    'page callback' => 'file_ajax_progress',
    'access arguments' => array(
      'access content',
    ),
    'theme callback' => 'ajax_base_page_theme',
    'type' => MENU_CALLBACK,
  );
  return $items;
}