You are here

function facebook_wall_menu in Facebook Wall 7

Implements hook_menu().

File

./facebook_wall.module, line 34
Get the current facebook wall posts of the given user or page.

Code

function facebook_wall_menu() {
  $menu['admin/config/services/facebook_wall'] = array(
    'title' => 'Facebook Wall settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'facebook_wall_settings_form',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer facebook wall',
    ),
    'type' => MENU_NORMAL_ITEM,
    'file' => 'facebook_wall.admin.inc',
  );
  $menu['admin/config/services/facebook_wall/settings'] = array(
    'title' => 'Facebook Settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'facebook_wall_settings_form',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer facebook wall',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 0,
    'file' => 'facebook_wall.admin.inc',
  );
  $menu['admin/config/services/facebook_wall/page_info'] = array(
    'title' => 'Page Information',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'facebook_wall_page_info',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer facebook wall',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 2,
    'file' => 'facebook_wall.admin.inc',
  );
  $menu['facebook_wall'] = array(
    'title' => variable_get('facebook_wall_menu_name', 'Facebook Wall Post'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'facebook_wall_display_posts',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'facebook wall',
    ),
    'file' => 'facebook_wall.pages.inc',
    'type' => MENU_CALLBACK,
    'weight' => 3,
  );
  return $menu;
}