You are here

function fb_connect_menu in Drupal for Facebook 6.2

Same name and namespace in other branches
  1. 5.2 fb_connect.module \fb_connect_menu()
  2. 6.3 fb_connect.module \fb_connect_menu()
  3. 7.4 fb_connect.module \fb_connect_menu()
  4. 7.3 fb_connect.module \fb_connect_menu()

Implementation of hook_menu().

File

./fb_connect.module, line 25
Support for Facebook Connect features

Code

function fb_connect_menu() {
  $items = array();

  // Cross-domain receiver.
  // XXX going away!  use fb_receiver.html instead.  This is left in to make the upgrade path easier, but it willgo away before 2.0 release.
  $items['fb_connect/receiver'] = array(
    'page callback' => 'fb_connect_receiver',
    'type' => MENU_CALLBACK,
    'access callback' => TRUE,
  );

  // Ajax helper
  $items['fb_connect/js'] = array(
    'page callback' => 'fb_connect_js_cb',
    'type' => MENU_CALLBACK,
    'access callback' => TRUE,
  );

  // Session and authmap helpers.
  $items[FB_CONNECT_PATH_SESSION_START] = array(
    'page callback' => 'fb_connect_session_start_cb',
    'type' => MENU_CALLBACK,
    'access callback' => TRUE,
  );
  $items[FB_CONNECT_PATH_SESSION_END] = array(
    'page callback' => 'fb_connect_session_end_cb',
    'type' => MENU_CALLBACK,
    'access callback' => TRUE,
  );

  // Admin pages
  $items[FB_PATH_ADMIN . '/fb_connect'] = array(
    'title' => 'Facebook Connect',
    'description' => 'Configure Facebook Connect',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'fb_connect_admin_settings',
    ),
    'access arguments' => array(
      FB_PERM_ADMINISTER,
    ),
    'file' => 'fb_connect.admin.inc',
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}