You are here

function fbconnect_invite_menu in Facebook Connect 6.2

Same name and namespace in other branches
  1. 8.2 fbconnect_invite/fbconnect_invite.module \fbconnect_invite_menu()
  2. 7.2 fbconnect_invite/fbconnect_invite.module \fbconnect_invite_menu()

Implements hook_menu().

File

fbconnect_invite/fbconnect_invite.module, line 11
@todo.

Code

function fbconnect_invite_menu() {
  $items['fbconnect/invite/friends'] = array(
    'title' => 'Invite my Facebook friends',
    'page callback' => 'fbconnect_invite_friends_page',
    'access callback' => 'user_access',
    'access arguments' => array(
      'invite facebook friends',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['fbconnect/invite/accept/%user'] = array(
    'title' => 'Accept invite',
    'page callback' => 'fbconnect_invite_accept',
    'page arguments' => array(
      1,
    ),
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['admin/settings/fbconnect/invite'] = array(
    'title' => 'Friends Invite',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'fbconnect_invite_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}