function fb_menu in Drupal for Facebook 5
Same name and namespace in other branches
- 5.2 fb.module \fb_menu()
- 6.3 fb.module \fb_menu()
- 6.2 fb.module \fb_menu()
- 7.4 fb.module \fb_menu()
- 7.3 fb.module \fb_menu()
File
- ./
fb.module, line 443
Code
function fb_menu($may_cache) {
$items = array();
if (!$may_cache) {
// Initialization moved to fb_init(), nothing to do here.
}
else {
// When forms are submitted directly to us, we cache the results,
// and show them later via this callback
$items[] = array(
'path' => 'fb/form_cache',
'callback' => '_fb_form_cache_cb',
'type' => MENU_CALLBACK,
'access' => TRUE,
);
// A page to help determine infinite session keys
$items[] = array(
'path' => 'fb/session',
'callback' => '_fb_session_cb',
'type' => MENU_CALLBACK,
'access' => TRUE,
);
// TODO: restrict access?
}
return $items;
}