You are here

function fb_graph_menu in Drupal for Facebook 7.3

Same name and namespace in other branches
  1. 6.3 fb_graph.module \fb_graph_menu()

Implements hook_menu().

Pages for Facebook graph helper and administration.

File

./fb_graph.module, line 46
Open Graph Helpers

Code

function fb_graph_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_GRAPH_PATH_DELETE . '/%'] = array(
    'title' => 'Facebook Delete',
    'description' => 'Delete an item from Facebook Open Graph',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'fb_graph_delete_confirm_form',
      FB_GRAPH_PATH_DELETE_ARGS,
    ),
    'access arguments' => array(
      FB_GRAPH_PERM_DELETE_OWN,
    ),
    'type' => MENU_CALLBACK,
    'file' => 'fb_graph.pages.inc',
  );
  return $items;
}