You are here

function flickrapi_menu in Flickr API 5

Same name and namespace in other branches
  1. 6 flickrapi.module \flickrapi_menu()
  2. 7.2 flickrapi.module \flickrapi_menu()
  3. 7 flickrapi.module \flickrapi_menu()

Implementation of hook_menu

File

./flickrapi.module, line 7

Code

function flickrapi_menu($cache) {
  $items = array();
  if ($cache) {
    $items[] = array(
      'title' => t('Flickr API Settings'),
      'path' => 'admin/settings/flickrapi',
      'description' => t('Configure Flickr API credentials.'),
      'access' => user_access('administer site configuration'),
      'type' => MENU_NORMAL_ITEM,
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'flickrapi_admin_settings',
      ),
    );
  }
  return $items;
}