You are here

function fb_menu in Drupal for Facebook 5.2

Same name and namespace in other branches
  1. 5 fb.module \fb_menu()
  2. 6.3 fb.module \fb_menu()
  3. 6.2 fb.module \fb_menu()
  4. 7.4 fb.module \fb_menu()
  5. 7.3 fb.module \fb_menu()

File

./fb.module, line 516

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,
    );
  }
  return $items;
}