You are here

function fb_connect_menu in Drupal for Facebook 7.3

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. 6.2 fb_connect.module \fb_connect_menu()
  4. 7.4 fb_connect.module \fb_connect_menu()

Implements hook_menu().

File

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

Code

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

  // 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;
}