You are here

function clients_flickr_menu in Web Service Clients 6

Same name and namespace in other branches
  1. 7 backends/clients_flickr/clients_flickr.module \clients_flickr_menu()

Implementation of hook_menu()

File

backends/clients_flickr/clients_flickr.module, line 41
Flickr plugin for Clients module @author Django Beatty - adub

Code

function clients_flickr_menu() {
  $items = array();
  $items['admin/settings/clients/connections/flickr'] = array(
    'title' => 'Add Flickr connection',
    'description' => 'Add Flickr connection',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'clients_flickr_config',
      'add',
    ),
    'access arguments' => array(
      'clients_flickr admin',
    ),
    'weight' => 10,
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/settings/clients/connections/flickr/%/edit'] = array(
    'title' => 'Edit Flickr connection',
    'description' => 'Edit Flickr connection',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'clients_flickr_config',
      6,
      5,
    ),
    'access arguments' => array(
      'clients_flickr admin',
    ),
    'weight' => 10,
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}