function flickr_menu in Flickr 6
Same name and namespace in other branches
- 5 flickr.module \flickr_menu()
- 7 flickr.module \flickr_menu()
Implements hook_menu().
File
- ./
flickr.module, line 65
Code
function flickr_menu() {
$items['admin/settings/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'] = array(
'title' => 'Flickr photos',
'type' => MENU_CALLBACK,
'page callback' => 'flickr_photos',
'access callback' => TRUE,
'description' => 'Flickr photos of default user id.',
);
$items['flickr/%user'] = array(
'title callback' => 'flickr_page_title',
'title arguments' => array(
1,
),
'type' => MENU_CALLBACK,
'page callback' => 'flickr_photos',
'page arguments' => array(
1,
),
'access callback' => 'flickr_photos_access',
'access arguments' => array(
1,
),
'description' => 'Flickr photos of specified user.',
);
$items['flickr/auth'] = array(
'type' => MENU_CALLBACK,
'access callback' => TRUE,
'page callback' => 'flickr_auth_callback',
);
return $items;
}