You are here

function flickr_sets_menu in Flickr 6

Same name and namespace in other branches
  1. 5 sets/flickr_sets.module \flickr_sets_menu()
  2. 7 sets/flickr_sets.module \flickr_sets_menu()

Implements hook_menu().

File

sets/flickr_sets.module, line 8

Code

function flickr_sets_menu() {
  $items['flickr/%user/sets'] = array(
    'title' => 'Sets',
    'description' => 'Display the Flickr photosets for the specified user',
    'type' => MENU_LOCAL_TASK,
    'page callback' => 'flickr_sets_photosets',
    'page arguments' => array(
      1,
    ),
    'access callback' => 'flickr_photos_access',
    'access arguments' => array(
      1,
    ),
  );
  $items['flickr/%user/sets/list'] = array(
    'title' => 'List',
    'description' => 'Display the Flickr photosets for the specified user',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['flickr/%user/sets/%flickr_set'] = array(
    'title' => 'Flickr photo set',
    'page callback' => 'flickr_sets_photoset',
    'page arguments' => array(
      1,
      3,
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  return $items;
}