You are here

function fb_canvas_menu in Drupal for Facebook 6.3

Same name and namespace in other branches
  1. 6.2 fb_canvas.module \fb_canvas_menu()
  2. 7.3 fb_canvas.module \fb_canvas_menu()

Implementation of hook_menu().

File

./fb_canvas.module, line 24
This module provides support for Canvas page applications. Use Drupal to power traditional Facebook Apps.

Code

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

  // Admin pages
  $items[FB_PATH_ADMIN . '/fb_canvas'] = array(
    'title' => 'Canvas Pages',
    'description' => 'Configure Canvas Pages',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'fb_canvas_admin_settings',
    ),
    'access arguments' => array(
      FB_PERM_ADMINISTER,
    ),
    'file' => 'fb_canvas.admin.inc',
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}