function fb_app_menu in Drupal for Facebook 6.3
Same name and namespace in other branches
- 5.2 fb_app.module \fb_app_menu()
- 6.2 fb_app.module \fb_app_menu()
- 7.3 fb_app.module \fb_app_menu()
Implementation of hook_menu().
File
- ./
fb_app.module, line 93 - Implementation of Drupal for Facebook application.
Code
function fb_app_menu() {
$items = array();
// Allow facebook to notify on various events, like adding or removing an app.
$items[FB_APP_PATH_EVENT . '/%/%'] = array(
'access callback' => TRUE,
'page callback' => 'fb_app_event_cb',
'page arguments' => array(
FB_APP_PATH_EVENT_ARGS,
// label
FB_APP_PATH_EVENT_ARGS + 1,
),
'type' => MENU_CALLBACK,
);
// Administration.
$items[FB_PATH_ADMIN . '/fb_app_create'] = array(
'title' => 'Add App',
'description' => 'Host an application on this server.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'fb_app_edit_form',
),
'access arguments' => array(
FB_PERM_ADMINISTER,
),
'file' => 'fb_app.admin.inc',
'type' => MENU_LOCAL_TASK,
'weight' => -1,
);
$items[FB_PATH_ADMIN_APPS . '/%fb/fb_app'] = array(
'title' => 'Edit',
'description' => 'Edit Facebook Application',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'fb_app_edit_form',
FB_PATH_ADMIN_APPS_ARGS,
),
'access arguments' => array(
FB_PERM_ADMINISTER,
),
'file' => 'fb_app.admin.inc',
'weight' => -1,
'type' => MENU_LOCAL_TASK,
);
$items[FB_PATH_ADMIN_APPS . '/%fb/fb_app/delete'] = array(
'title' => 'Delete',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'fb_app_admin_delete_confirm_form',
FB_PATH_ADMIN_APPS_ARGS,
),
'access arguments' => array(
FB_PERM_ADMINISTER,
),
'file' => 'fb_app.admin.inc',
'type' => MENU_CALLBACK,
);
return $items;
}