You are here

function flickr_tags_menu in Flickr 7

Same name and namespace in other branches
  1. 5 tags/flickr_tags.module \flickr_tags_menu()
  2. 6 tags/flickr_tags.module \flickr_tags_menu()

Implements hook_menu().

File

tags/flickr_tags.module, line 24
The Flickr tags module.

Code

function flickr_tags_menu() {
  $items['flickr/%user/tags'] = array(
    'title' => 'Tags',
    'description' => 'Flickr main tag cloud page',
    'page callback' => 'flickr_tags_cloud',
    'page arguments' => array(
      1,
    ),
    'access callback' => 'flickr_photos_access',
    'access arguments' => array(
      1,
    ),
  );
  $items['flickr/%user/tags/cloud'] = array(
    'title' => 'Cloud',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['flickr/%user/tags/list'] = array(
    'title' => 'List',
    'description' => 'Flickr tag list page',
    'type' => MENU_LOCAL_TASK,
    'page callback' => 'flickr_tags_list',
    'page arguments' => array(
      1,
    ),
    'access callback' => 'flickr_photos_access',
    'access arguments' => array(
      1,
    ),
  );
  $items['flickr/%user/tag/%'] = array(
    'title' => 'Photos for tag',
    'description' => 'Show Flickr photos for a particular tag',
    'page callback' => 'flickr_tags_photos',
    'page arguments' => array(
      1,
      3,
    ),
    'access callback' => 'flickr_photos_access',
    'access arguments' => array(
      1,
    ),
  );
  return $items;
}