You are here

function fb_menu in Drupal for Facebook 6.2

Same name and namespace in other branches
  1. 5.2 fb.module \fb_menu()
  2. 5 fb.module \fb_menu()
  3. 6.3 fb.module \fb_menu()
  4. 7.4 fb.module \fb_menu()
  5. 7.3 fb.module \fb_menu()

Implementation of hook_menu().

File

./fb.module, line 625

Code

function fb_menu() {
  $items = array();

  // Admin pages overview.
  $items[FB_PATH_ADMIN] = array(
    'title' => 'Facebook Applications',
    'description' => 'Facebook Applications',
    'page callback' => 'fb_admin_page',
    'access arguments' => array(
      FB_PERM_ADMINISTER,
    ),
    'file' => 'fb.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  $items[FB_PATH_ADMIN . '/list'] = array(
    'title' => 'List',
    'weight' => -2,
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );

  // Admin pages for each app.
  $items[FB_PATH_ADMIN_APPS . '/%fb'] = array(
    'title' => 'Application Detail',
    'description' => 'Facebook Applications',
    'page callback' => 'fb_admin_app_page',
    'page arguments' => array(
      FB_PATH_ADMIN_APPS_ARGS,
    ),
    'access arguments' => array(
      FB_PERM_ADMINISTER,
    ),
    'file' => 'fb.admin.inc',
    'type' => MENU_CALLBACK,
  );
  $items[FB_PATH_ADMIN_APPS . '/%fb/fb'] = array(
    'title' => 'View',
    'weight' => -2,
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );

  // When forms are submitted directly to us, we cache the results,
  // and show them later via this callback
  $items['fb/form_cache'] = array(
    'page callback' => '_fb_form_cache_cb',
    'type' => MENU_CALLBACK,
    'access callback' => TRUE,
  );
  return $items;
}