You are here

function fbconnect_menu in Facebook Connect 6

Same name and namespace in other branches
  1. 8.2 fbconnect.module \fbconnect_menu()
  2. 5 fbconnect.module \fbconnect_menu()
  3. 6.2 fbconnect.module \fbconnect_menu()
  4. 7.2 fbconnect.module \fbconnect_menu()

Implementation of hook_menu().

File

./fbconnect.module, line 6

Code

function fbconnect_menu() {
  $items['admin/settings/fbconnect'] = array(
    'title' => 'Facebook Connect',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'fbconnect_api_keys_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'fbconnect.admin.inc',
  );
  $items['admin/settings/fbconnect/api-keys'] = array(
    'title' => 'Api Keys',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'file' => 'fbconnect.admin.inc',
  );
  $items['admin/settings/fbconnect/apperance'] = array(
    'title' => 'Appearance',
    'type' => MENU_LOCAL_TASK,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'fbconnect_appearance_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'fbconnect.admin.inc',
  );
  $items['admin/settings/fbconnect/fb-app'] = array(
    'title' => 'App Settings',
    'type' => MENU_LOCAL_TASK,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'fbconnect_fbapp_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'fbconnect.admin.inc',
    'weight' => 3,
  );
  $items['fbconnect/register/prompt'] = array(
    'title' => 'Facebook connect',
    'page callback' => 'fbconnect_prompt_page',
    'access callback' => 'user_is_anonymous',
    'type' => MENU_CALLBACK,
    'file' => 'fbconnect.pages.inc',
  );
  $items['fbconnect/register/create'] = array(
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'fbconnect_register_page',
    ),
    'access callback' => 'user_is_anonymous',
    'type' => MENU_CALLBACK,
    'file' => 'fbconnect.pages.inc',
  );
  $items['fbconnect/invite/friends'] = array(
    'title' => t('Invite my Facebook friends'),
    'page callback' => 'fbconnect_render_friends_invite_form',
    'access arguments' => array(
      'invite facebook friends',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'fbconnect.pages.inc',
  );
  $items['user/%user_category/edit/fbconnect'] = array(
    'title' => 'Facebook',
    'page callback' => 'fbconnect_user_identities',
    'page arguments' => array(
      1,
    ),
    'access callback' => 'user_edit_access',
    'access arguments' => array(
      1,
    ),
    'load arguments' => array(
      '%map',
      '%index',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'fbconnect.pages.inc',
  );
  $items['fbconnect/post-remove'] = array(
    'page callback' => 'fbconnect_post_remove_callback',
    'access callback' => 'user_access',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );

  // Cross-domain receiver.
  $items['fbconnect/receiver'] = array(
    'page callback' => 'fbconnect_receiver',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
    'file' => 'xd_receiver.inc',
  );
  return $items;
}