You are here

function twitter_signin_menu in Twitter 7.5

Same name and namespace in other branches
  1. 6.5 twitter_signin/twitter_signin.module \twitter_signin_menu()
  2. 6.3 twitter_signin/twitter_signin.module \twitter_signin_menu()
  3. 6.4 twitter_signin/twitter_signin.module \twitter_signin_menu()
  4. 7.6 twitter_signin/twitter_signin.module \twitter_signin_menu()
  5. 7.3 twitter_signin/twitter_signin.module \twitter_signin_menu()
  6. 7.4 twitter_signin/twitter_signin.module \twitter_signin_menu()

Implements hook_menu().

File

twitter_signin/twitter_signin.module, line 10
Hook implementations for Twitter Signin module.

Code

function twitter_signin_menu() {
  $items['twitter/redirect'] = array(
    'title' => 'Twitter Redirect',
    'page callback' => 'twitter_signin_redirect',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['admin/config/services/twitter/signin'] = array(
    'title' => 'Sign-in',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'twitter_signin_admin_settings',
    ),
    'access arguments' => array(
      'administer twitter',
    ),
    'file' => 'twitter_signin.pages.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 5,
  );
  return $items;
}