You are here

function oembed_menu in oEmbed 7

Same name and namespace in other branches
  1. 7.0 oembed.module \oembed_menu()

Implements hook_menu().

File

./oembed.module, line 88
Core functionality for oEmbed

Code

function oembed_menu() {
  $items = array();
  $items['admin/config/media/oembed'] = array(
    'title' => 'oEmbed',
    'description' => 'Settings for oEmbed',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'oembed_settings',
    ),
    'file' => 'oembed.admin.inc',
    'access arguments' => array(
      'administer site configuration',
    ),
  );
  $items['admin/config/media/oembed/consumer'] = array(
    'title' => 'Consumer settings',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/config/media/oembed/provider'] = array(
    'title' => 'Provider plugins',
    'description' => 'Settings for oEmbed provider plugins',
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/config/media/oembed/test'] = array(
    'title' => 'Test',
    'description' => 'Test URLs for oEmbed',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'oembed_test',
    ),
    'file' => 'oembed.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'access arguments' => array(
      'administer site configuration',
    ),
  );
  return $items;
}