You are here

function flickr_sets_menu in Flickr 7

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

Implements hook_menu().

File

sets/flickr_sets.module, line 24
The Flickr sets module.

Code

function flickr_sets_menu() {
  $items['flickr/%user/sets'] = array(
    'title' => 'Sets',
    'description' => 'Display the Flickr photosets for the specified user',
    '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_LOCAL_TASK,
  );
  $items['flickr/%user/sets/%flickr_set'] = array(
    'page callback' => 'flickr_sets_photoset',
    'page arguments' => array(
      1,
      3,
    ),
    'access callback' => 'flickr_photos_access',
    'access arguments' => array(
      1,
    ),
  );
  return $items;
}