function fbconnect_login_menu in Facebook Connect 7.2
Same name and namespace in other branches
- 8.2 fbconnect_login/fbconnect_login.module \fbconnect_login_menu()
Implements hook_menu().
File
- fbconnect_login/
fbconnect_login.module, line 39 - 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;
}