You are here

function drupagram_menu in Drupagram 6

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

Implementation hook_menu().

File

./drupagram.module, line 14

Code

function drupagram_menu() {
  $items = array();
  $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/settings/services/instagram'] = 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/settings/services/instagram/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,
    ),
    'load arguments' => array(
      '%map',
      '%index',
    ),
    '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;
}