function fbconnect_invite_menu in Facebook Connect 8.2
Same name and namespace in other branches
- 6.2 fbconnect_invite/fbconnect_invite.module \fbconnect_invite_menu()
- 7.2 fbconnect_invite/fbconnect_invite.module \fbconnect_invite_menu()
Implements hook_menu().
File
- fbconnect_invite/
fbconnect_invite.module, line 6
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/config/people/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;
}