You are here

function image_fupload_image_menu in Image FUpload 6

Same name and namespace in other branches
  1. 6.3 image_fupload_image/image_fupload_image.module \image_fupload_image_menu()
  2. 6.2 image_fupload_image/image_fupload_image.module \image_fupload_image_menu()

Implementation of hook_menu().

File

image_fupload_image/image_fupload_image.module, line 6

Code

function image_fupload_image_menu() {
  $items['admin/settings/image/image_fupload'] = array(
    'title' => 'Image FUpload Settings',
    'access arguments' => array(
      'administer site configuration',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'image_fupload_image_admin',
    ),
    'description' => 'Configure FUpload Settings',
    'type' => MENU_LOCAL_TASK,
    'file path' => drupal_get_path('module', 'image_fupload'),
    'file' => 'image_fupload.admin.inc',
  );
  $items['fupload/js'] = array(
    'title' => 'Image FUpload',
    'page callback' => 'fupload_node_create',
    'access arguments' => array(
      'create images',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'node.pages.inc',
    'file path' => drupal_get_path('module', 'node'),
  );
  $items['fupload/js/deletequeue'] = array(
    'title' => 'Image FUpload',
    'page callback' => 'fupload_empty_queue',
    'access arguments' => array(
      'create images',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['fupload/flash'] = array(
    'title' => 'Image FUpload',
    'page callback' => 'fupload_filetransfer',
    'access callback' => TRUE,
    // must be examined later
    'type' => MENU_CALLBACK,
  );
  return $items;
}