You are here

function timeline_bookmark_menu in MediaFront 7.2

Implements hook_menu().

File

modules/timeline_bookmark/timeline_bookmark.module, line 8

Code

function timeline_bookmark_menu() {

  // The timeline bookmark callback.
  $items['timeline_bookmark/%user/%/%/%'] = array(
    'title' => 'Timeline Bookmark',
    'page callback' => 'timeline_bookmark_create',
    'page arguments' => array(
      1,
      2,
      3,
      4,
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );

  // Delete confirmation for timeline bookmarks.
  $items['timeline_bookmark/%user/%/%/%/delete'] = array(
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'timeline_bookmark_delete_confirm',
      1,
      2,
      3,
      4,
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );

  // The timeline bookmark callback.
  $items['timeline_resume/%user/%/%/%'] = array(
    'title' => 'Timeline Resume',
    'page callback' => 'timeline_bookmark_resume',
    'page arguments' => array(
      1,
      2,
      3,
      4,
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );

  // To retrieve the timeline bookmark.
  $items['timeline_resume_get/%user/%/%'] = array(
    'title' => 'Retrieve a timeline resume',
    'page callback' => 'timeline_bookmark_resume_get',
    'page arguments' => array(
      1,
      2,
      3,
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}