You are here

function fb_devel_menu in Drupal for Facebook 7.3

Same name and namespace in other branches
  1. 5.2 fb_devel.module \fb_devel_menu()
  2. 5 fb_devel.module \fb_devel_menu()
  3. 6.3 fb_devel.module \fb_devel_menu()
  4. 6.2 fb_devel.module \fb_devel_menu()
  5. 7.4 fb_devel.module \fb_devel_menu()

File

./fb_devel.module, line 17
Makes development with Drupal for Facebook much easier. Keep this module enabled until you're confident your app works perfectly.

Code

function fb_devel_menu() {
  $items['fb/devel'] = array(
    'page callback' => 'fb_devel_page',
    'type' => MENU_CALLBACK,
    'access callback' => TRUE,
  );
  $items['fb/devel/fbu'] = array(
    'page callback' => 'fb_devel_fbu_page',
    'type' => MENU_CALLBACK,
    'access callback' => TRUE,
  );
  $items['fb/devel/tab'] = array(
    'page callback' => 'fb_devel_tab',
    'type' => MENU_CALLBACK,
    'access callback' => TRUE,
  );

  // Return some info for debugging AHAH problems
  $items['fb/devel/js'] = array(
    'page callback' => 'fb_devel_js',
    'type' => MENU_CALLBACK,
    'access callback' => TRUE,
  );
  $items['fb/devel/linter'] = array(
    'title' => 'Facebook linter',
    'page callback' => 'drupal_not_found',
    // Because we alter link, below.
    'type' => MENU_NORMAL_ITEM,
    'access arguments' => array(
      'access devel information',
    ),
    'menu_name' => 'devel',
    'options' => array(
      'alter' => TRUE,
    ),
  );
  return $items;
}