function fb_tab_menu in Drupal for Facebook 6.3
Same name and namespace in other branches
- 7.3 fb_tab.module \fb_tab_menu()
File
- ./
fb_tab.module, line 29 - This module provides support for "Profile Tabs" that can be added to facebook pages (no longer allowed for user profiles).
Code
function fb_tab_menu() {
$items = array();
$items[FB_TAB_PATH_VIEW] = array(
'page callback' => 'fb_tab_view',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
$items[FB_TAB_PATH_FORM] = array(
'title' => 'Configure Tabs',
'page callback' => 'fb_tab_pages',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
$items[FB_TAB_PATH_FORM . '/%'] = array(
'page callback' => 'drupal_get_form',
'page arguments' => array(
'fb_tab_config_form',
FB_TAB_PATH_FORM_ARGS,
),
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
$items[FB_TAB_PATH_ADDED . '/%fb'] = array(
'page callback' => 'fb_tab_added',
'access arguments' => array(
'access content',
),
'page arguments' => array(
FB_TAB_PATH_ADDED_ARGS,
),
'type' => MENU_CALLBACK,
);
// Admin pages
$items[FB_PATH_ADMIN . '/fb_tab'] = array(
'title' => 'Page Tabs',
'description' => 'Configure Tabs',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'fb_tab_admin_settings',
),
'access arguments' => array(
FB_PERM_ADMINISTER,
),
'file' => 'fb_tab.admin.inc',
'type' => MENU_LOCAL_TASK,
);
return $items;
}