You are here

function fb_form_menu in Drupal for Facebook 5

Same name and namespace in other branches
  1. 5.2 fb_form.module \fb_form_menu()
  2. 6.3 fb_form.module \fb_form_menu()
  3. 6.2 fb_form.module \fb_form_menu()
  4. 7.3 fb_form.module \fb_form_menu()

hook_menu.

File

./fb_form.module, line 18
This module defines facebook-specific form elements for use with Drupal's form API.

Code

function fb_form_menu($may_cache) {
  $items = array();
  if ($may_cache) {

    // Page allowing a user to invite their friends to add the app.
    $items[] = array(
      'path' => 'fb/invite',
      'callback' => 'fb_form_invite_page',
      'access' => TRUE,
      'type' => MENU_CALLBACK,
    );
  }
  return $items;
}