You are here

function fbconnect_login_menu in Facebook Connect 8.2

Same name and namespace in other branches
  1. 7.2 fbconnect_login/fbconnect_login.module \fbconnect_login_menu()

Implements hook_menu().

File

fbconnect_login/fbconnect_login.module, line 34
Login functionality for Facebook Connect module

Code

function fbconnect_login_menu() {
  $items['fbconnect/authorize/prompt'] = array(
    'title' => 'Facebook connect',
    'page callback' => 'fbconnect_login_prompt_page',
    'type' => MENU_NORMAL_ITEM,
    'file' => 'fbconnect_login.pages.inc',
  );
  $items['fbconnect/authorize'] = array(
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'fbconnect_login_authorize_page',
    ),
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
    'file' => 'fbconnect_login.pages.inc',
  );
  $items['fbconnect/link'] = array(
    'page callback' => 'fbconnect_login_link_callback',
    'access callback' => 'user_is_logged_in',
    'type' => MENU_CALLBACK,
    'file' => 'fbconnect_login.pages.inc',
  );
  return $items;
}