You are here

function oembedprovider_menu in oEmbed 6.0

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

Implementation of hook_menu().

File

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

Code

function oembedprovider_menu() {
  $menu = array();
  $handler = array(
    'type' => MENU_CALLBACK,
    'file' => 'oembedprovider.inc',
    'page callback' => '_oembedprovider_handle_request',
    'page arguments' => array(
      2,
    ),
    'access arguments' => array(
      'access content',
    ),
  );
  $menu['oembed/endpoint'] = $menu['oembed/endpoint/%'] = $handler;
  return $menu;
}