function fb_opengraph_menu in Drupal for Facebook 7.4
Implements hook_menu().
Pages for Facebook graph helper and administration.
File
- ./
fb_opengraph.module, line 46 - Open Graph Helpers
Code
function fb_opengraph_menu() {
$items = array();
// @TODO: pages to browse graph items published this application and user.
// Delete an item from the graph. Will only succeed when user has necessary permission.
$items[FB_OPENGRAPH_PATH_DELETE . '/%'] = array(
'title' => 'Facebook Delete',
'description' => 'Delete an item from Facebook Open Graph',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'fb_opengraph_delete_confirm_form',
FB_OPENGRAPH_PATH_DELETE_ARGS,
),
'access arguments' => array(
FB_OPENGRAPH_PERM_DELETE_OWN,
),
'type' => MENU_CALLBACK,
'file' => 'fb_opengraph.pages.inc',
);
return $items;
}