You are here

function flickrapi_menu in Flickr API 7.2

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

Implements hook_menu().

File

./flickrapi.module, line 15
FlickAPI integration module.

Code

function flickrapi_menu() {
  $items = array();
  $items['admin/config/media/flickrapi'] = array(
    'title' => 'Flickr API Settings',
    'description' => 'Configure Flickr API credentials.',
    'access arguments' => array(
      'configure flickr api',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'flickrapi_admin_settings',
    ),
    'file' => 'flickrapi.admin.inc',
  );
  $items['admin/config/media/flickrapi/authenticate'] = array(
    'title' => 'Authenticate Flickr Credentials',
    'access arguments' => array(
      'configure flickr api',
    ),
    'page callback' => 'flickrapi_oauth_authenticate',
    'file' => 'flickrapi.admin.inc',
  );
  $items['admin/config/media/flickrapi/clear'] = array(
    'title' => 'Clear Flickr Credentials',
    'access arguments' => array(
      'configure flickr api',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'flickrapi_oauth_clear_form',
    ),
    'file' => 'flickrapi.admin.inc',
  );
  return $items;
}