You are here

function oembedprovider_menu in oEmbed 8

Same name and namespace in other branches
  1. 6.0 oembedprovider.module \oembedprovider_menu()
  2. 7 modules/oembedprovider/oembedprovider.module \oembedprovider_menu()
  3. 7.0 oembedprovider/oembedprovider.module \oembedprovider_menu()

Implements hook_menu().

File

modules/oembedprovider/oembedprovider.module, line 33
Module for providing content as defined in the oEmbed specification

Code

function oembedprovider_menu() {
  $menu = array();
  $menu['oembed/endpoint'] = array(
    'type' => MENU_CALLBACK,
    'file' => 'oembedprovider.inc',
    'page callback' => '_oembedprovider_handle_request',
    'access arguments' => array(
      'access content',
    ),
    'delivery callback' => 'oembedprovider_deliver_response',
  );
  $menu['admin/config/media/oembed/endpoint'] = array(
    'title' => 'Public endpoint',
    'description' => 'Settings for oEmbed endpoint',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'oembedprovider_settings',
    ),
    'file' => 'oembedprovider.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'access arguments' => array(
      'administer site configuration',
    ),
  );
  return $menu;
}