You are here

function twitter_menu in Twitter 7.4

Same name and namespace in other branches
  1. 6.5 twitter.module \twitter_menu()
  2. 6.2 twitter.module \twitter_menu()
  3. 6.3 twitter.module \twitter_menu()
  4. 6.4 twitter.module \twitter_menu()
  5. 7.6 twitter.module \twitter_menu()
  6. 7.3 twitter.module \twitter_menu()
  7. 7.5 twitter.module \twitter_menu()

Implements hook_menu().

File

./twitter.module, line 15
Provides API integration with the Twitter microblogging service.

Code

function twitter_menu() {
  $items['twitter/oauth'] = array(
    'title' => 'Twitter',
    'access callback' => TRUE,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'twitter_oauth_callback',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'twitter.pages.inc',
  );
  $items['admin/config/services/twitter'] = array(
    'title' => 'Twitter',
    'description' => 'Configure integration with Twitter (and compatible) API services.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'twitter_admin_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'twitter.pages.inc',
  );
  $items['admin/config/services/twitter/default'] = array(
    'title' => 'Twitter',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['user/%user_category/edit/twitter'] = array(
    'title' => 'Twitter accounts',
    'page callback' => 'twitter_user_settings',
    'page arguments' => array(
      1,
    ),
    'access callback' => 'twitter_edit_access',
    'access arguments' => array(
      1,
    ),
    'load arguments' => array(
      '%map',
      '%index',
    ),
    'weight' => 10,
    'file' => 'twitter.pages.inc',
    'type' => MENU_LOCAL_TASK,
  );
  $items['user/%user/edit/twitter/global/%'] = array(
    'title' => 'Twitter accounts',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'twitter_user_make_global',
      1,
      5,
    ),
    'access arguments' => array(
      'make twitter accounts global',
    ),
    'file' => 'twitter.pages.inc',
  );
  return $items;
}