function flickrgallery_menu in FlickrGallery 6.2
Same name and namespace in other branches
- 7.3 flickrgallery.module \flickrgallery_menu()
- 7 flickrgallery.module \flickrgallery_menu()
- 7.2 flickrgallery.module \flickrgallery_menu()
Implementation of hook_menu()
File
- ./
flickrgallery.module, line 27 - This module shows the sets and photo's from a Flickr account
Code
function flickrgallery_menu() {
$items = array();
$items['admin/settings/flickr'] = array(
'title' => 'Flickr settings',
'description' => 'Configure options for the flickr Gallery module',
'page callback' => 'flickrgallery_admin_settings',
'access arguments' => array(
'administer flickr settings',
),
);
$items['flickr'] = array(
'title' => 'Flickr Gallery',
'page callback' => 'flickrgallery_albums',
'access arguments' => array(
'view photosets',
),
'type' => MENU_NORMAL_ITEM,
'weight' => -100,
);
$items['flickr/set/%'] = array(
'title' => 'Flickr Gallery Set',
'page callback' => 'flickrgallery_set',
'access arguments' => array(
'view photosets',
),
'type' => MENU_CALLBACK,
);
return $items;
}