You are here

function emapi_menu in Embedded Media Field 6.3

Implementation of hook_menu().

File

emapi/emapi.module, line 18
Provides an API for parsing, storage, and display of third party media.

Code

function emapi_menu() {
  $items = array();
  $items['admin/content/emapi'] = array(
    'page callback' => 'emapi_admin_list_page',
    'title' => 'Embedded media',
    'description' => 'Administration list of embedded media.',
    'access arguments' => array(
      'administer embedded media',
    ),
    'file' => 'includes/emapi.admin.inc',
  );
  $items['emapi/parse/json'] = array(
    'page callback' => 'emapi_parse_json',
    'title' => 'Parse media',
    'description' => 'Automatically derive a media object from a parsed URL or embed code.',
    'access arguments' => array(
      'administer embedded media',
    ),
    'file' => 'includes/emapi.parse.inc',
    'type' => MENU_CALLBACK,
  );
  return $items;
}