function flickr_menu in Flickr 7
Same name and namespace in other branches
- 5 flickr.module \flickr_menu()
- 6 flickr.module \flickr_menu()
Implements hook_menu().
File
- ./
flickr.module, line 62 - The Flickr module.
Code
function flickr_menu() {
$items['admin/config/media/flickr'] = array(
'title' => 'Flickr',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'flickr_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'description' => 'Change settings for the flickr module.',
'file' => 'flickr.admin.inc',
);
$items['flickr/auth'] = array(
'type' => MENU_CALLBACK,
'access callback' => TRUE,
'page callback' => 'flickr_auth_callback',
);
$items['flickr/%user'] = array(
'title callback' => 'flickr_photos_page_title',
'title arguments' => array(
1,
),
'description' => 'Flickr photos of specified user.',
'type' => MENU_CALLBACK,
'page callback' => 'flickr_photos',
'page arguments' => array(
1,
),
'access callback' => 'flickr_photos_access',
'access arguments' => array(
1,
),
);
$items['flickr'] = array(
'title' => 'Flickr photos',
'type' => MENU_CALLBACK,
'page callback' => 'flickr_photos',
'access callback' => TRUE,
'description' => 'Flickr photos of default user id.',
);
$items['user/%user/flickr'] = array(
'title' => 'Flickr',
'description' => 'Display the Flickr photos of this user',
'type' => MENU_LOCAL_TASK,
'page callback' => 'flickr_user_page',
'page arguments' => array(
1,
),
'access callback' => 'flickr_photos_access',
'access arguments' => array(
1,
),
);
return $items;
}