function flickrgallery_menu in FlickrGallery 7.2
Same name and namespace in other branches
- 6.2 flickrgallery.module \flickrgallery_menu()
- 7.3 flickrgallery.module \flickrgallery_menu()
- 7 flickrgallery.module \flickrgallery_menu()
Implements hook_menu().
File
- ./
flickrgallery.module, line 35 - This module shows the sets and photo's from a Flickr account
Code
function flickrgallery_menu() {
$items = array();
$items['admin/config/media/flickgallery/gallery'] = array(
'title' => 'Flickr Gallery',
'description' => 'Configure options for the flickr Gallery module',
'page callback' => 'flickrgallery_admin_settings',
'access arguments' => array(
'administer flickr settings',
),
'file' => 'flickrgallery.admin.inc',
);
$items[variable_get('flickrgallery_path', 'flickr')] = array(
'title' => 'Flickr Gallery',
'page callback' => 'flickrgallery_wrapper_albums',
'access arguments' => array(
'view photosets',
),
'type' => MENU_NORMAL_ITEM,
'weight' => -100,
);
$setPath = variable_get('flickrgallery_path', 'flickr') . '/set/%';
$cntSetPath = count(explode("/", $setPath)) - 1;
$items[$setPath] = array(
'title' => 'Flickr Gallery Set',
'page callback' => 'flickrgallery_set',
'access arguments' => array(
'view photosets',
),
'page arguments' => array(
$cntSetPath,
),
'type' => MENU_CALLBACK,
);
return $items;
}