You are here

function media_menu in D7 Media 6

Same name and namespace in other branches
  1. 7.4 media.module \media_menu()
  2. 7 media.module \media_menu()
  3. 7.2 media.module \media_menu()
  4. 7.3 media.module \media_menu()

Implementation of hook_menu().

File

./media.module, line 29
Media API

Code

function media_menu() {

  // AJAX formatter. This page is used to create the formatter form
  // when adding a new file, after selecting a file and pressing 'Add'.
  $items['media/js'] = array(
    'page callback' => 'media_ahah_formatter_load',
    'access arguments' => array(
      'access content',
    ),
    'file' => 'media_ahah.inc',
  );
  $items['media/metadata/js'] = array(
    'page callback' => 'media_ahah_metadata_ahah',
    'access arguments' => array(
      'access content',
    ),
    'file' => 'media_ahah.inc',
  );

  // Default settings, for content types that do not have their own.
  $items['admin/settings/media'] = array(
    'title' => 'Media settings',
    'description' => 'Configure Global Media settings, including default content type settings.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'media_settings_global',
      'global',
    ),
    'access arguments' => array(
      'administer media',
    ),
    'file' => 'media_settings.inc',
    'weight' => 3,
  );
  return $items;
}