You are here

function flickrgallery_menu in FlickrGallery 7

Same name and namespace in other branches
  1. 6.2 flickrgallery.module \flickrgallery_menu()
  2. 7.3 flickrgallery.module \flickrgallery_menu()
  3. 7.2 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/flickrapi/settings'] = array(
    'title' => 'Flickr API',
    'description' => 'Flickr API settings',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/config/media/flickrapi/gallery'] = array(
    'title' => 'Flickr Gallery',
    'description' => 'Configure options for the flickr Gallery module',
    'page callback' => 'flickrgallery_admin_settings',
    'access arguments' => array(
      'administer flickr settings',
    ),
    'type' => MENU_LOCAL_TASK,
    '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,
  );
  $items[variable_get('flickrgallery_path', 'flickr') . '/set/%'] = array(
    'title' => 'Flickr Gallery Set',
    'page callback' => 'flickrgallery_set',
    'access arguments' => array(
      'view photosets',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}