function fbconnect_menu in Facebook Connect 6.2
Same name and namespace in other branches
- 8.2 fbconnect.module \fbconnect_menu()
- 5 fbconnect.module \fbconnect_menu()
- 6 fbconnect.module \fbconnect_menu()
- 7.2 fbconnect.module \fbconnect_menu()
Implements hook_menu().
File
- ./
fbconnect.module, line 11 - Integration with Facebook Connect API.
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/post-remove'] = array(
'page callback' => 'fbconnect_post_remove_callback',
'access callback' => 'user_access',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
$items['fbconnect/link'] = array(
'page callback' => 'fbconnect_link_callback',
'access callback' => 'user_is_logged_in',
'type' => MENU_CALLBACK,
'file' => 'fbconnect.pages.inc',
);
return $items;
}