You are here

function fb_user_menu in Drupal for Facebook 7.4

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

Implements hook_menu().

File

./fb_user.module, line 65
This module manages relations between local Drupal user accounts and their accounts on facebook.com.

Code

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

  // Admin pages
  $items[FB_PATH_ADMIN_CONFIG . '/fb_user'] = array(
    'title' => 'User Settings',
    'description' => 'Local account to facebook account mapping',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'fb_user_admin_settings',
    ),
    'access arguments' => array(
      FB_PERM_ADMINISTER,
    ),
    'file' => 'fb_user.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}