You are here

function mediafront_menu in MediaFront 7.2

Same name and namespace in other branches
  1. 6.2 mediafront.module \mediafront_menu()
  2. 6 mediafront.module \mediafront_menu()
  3. 7 mediafront.module \mediafront_menu()

Implements hook_menu().

File

./mediafront.module, line 26

Code

function mediafront_menu() {
  $items = array();

  // Gets a JSON playlist for any view.
  // This menu routes to a page that uses views -> we make sure views is enabled
  if (module_exists('views')) {
    $items['mediafront_getplaylist'] = array(
      'page callback' => 'mediafront_get_playlist_json',
      'type' => MENU_CALLBACK,
      'page arguments' => array(
        1,
        2,
        3,
      ),
      'access arguments' => array(
        'access content',
      ),
    );
  }
  $items = array_merge($items, mediafront_preset_menu());
  return $items;
}