You are here

function media_bulk_upload_menu in D7 Media 7.4

Same name and namespace in other branches
  1. 7.2 modules/media_bulk_upload/media_bulk_upload.module \media_bulk_upload_menu()
  2. 7.3 modules/media_bulk_upload/media_bulk_upload.module \media_bulk_upload_menu()

Implements hook_menu().

File

modules/media_bulk_upload/media_bulk_upload.module, line 11
Primarily Drupal hooks.

Code

function media_bulk_upload_menu() {
  $items['admin/content/file/import'] = array(
    'title' => 'Import files',
    'description' => 'Import files into your media library.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'media_bulk_upload_import',
    ),
    'access arguments' => array(
      'import media',
    ),
    'type' => MENU_LOCAL_ACTION,
    'file' => 'includes/media_bulk_upload.admin.inc',
    'weight' => 10,
  );
  $items['admin/content/file/thumbnails/import'] = $items['admin/content/file/import'];

  // @todo Investigate passing file IDs in query string rather than a menu
  // argument and then deprecate media_multi_load().
  $items['admin/content/file/edit-multiple/%media_bulk_upload_multi'] = array(
    'title' => 'Edit multiple files',
    'page callback' => 'media_bulk_upload_file_page_edit_multiple',
    'page arguments' => array(
      4,
    ),
    'access callback' => '_media_bulk_upload_file_entity_access_recursive',
    'access arguments' => array(
      4,
      'update',
    ),
    'file' => 'includes/media_bulk_upload.pages.inc',
  );
  return $items;
}