You are here

function drupagram_menu in Drupagram 7

Same name and namespace in other branches
  1. 6 drupagram.module \drupagram_menu()

Implements hook_menu().

File

./drupagram.module, line 12
Provides API integration with the Instagram microblogging service.

Code

function drupagram_menu() {
  $items['instagram/oauth'] = array(
    'title' => 'Instagram',
    'access callback' => TRUE,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'drupagram_oauth_callback',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'drupagram.pages.inc',
  );
  $items['admin/config/services/drupagram'] = array(
    'title' => 'Instagram',
    'description' => 'Configure integration with Instagram (and compatible) API services.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'drupagram_admin_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'drupagram.pages.inc',
  );
  $items['admin/config/services/drupagram/default'] = array(
    'title' => 'Instagram',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['user/%user/edit/drupagram'] = array(
    'title' => 'Instagram accounts',
    'page callback' => 'drupagram_user_settings',
    'page arguments' => array(
      1,
    ),
    'access callback' => 'drupagram_edit_access',
    'access arguments' => array(
      1,
    ),
    'weight' => 10,
    'file' => 'drupagram.pages.inc',
    'type' => MENU_LOCAL_TASK,
  );
  $items['user/%user/edit/drupagram/global/%'] = array(
    'title' => 'Instagram accounts',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'drupagram_user_make_global',
      1,
      5,
    ),
    'access arguments' => array(
      'make drupagram accounts global',
    ),
    'file' => 'drupagram.pages.inc',
  );
  return $items;
}