function fb_user_menu in Drupal for Facebook 5
Same name and namespace in other branches
- 6.3 fb_user.module \fb_user_menu()
- 6.2 fb_user.module \fb_user_menu()
- 7.4 fb_user.module \fb_user_menu()
- 7.3 fb_user.module \fb_user_menu()
File
- ./
fb_user.module, line 26 - This module allows Drupal user records to be associated with Facebook user ids. It can create local user accounts when Facebook users visit an application's canvas pages.
Code
function fb_user_menu($may_cache) {
$items = array();
if ($may_cache) {
global $user;
$items[] = array(
'path' => FB_USER_SYNC_PATH,
'access' => TRUE,
'callback' => 'fb_user_sync_cb',
'type' => MENU_CALLBACK,
);
$items[] = array(
'path' => FB_USER_POST_ADD_PATH,
'access' => TRUE,
'callback' => 'fb_user_post_add_cb',
'type' => MENU_CALLBACK,
);
$items[] = array(
'path' => FB_USER_POST_REMOVE_PATH,
'access' => TRUE,
'callback' => 'fb_user_post_remove_cb',
'type' => MENU_CALLBACK,
);
}
return $items;
}