You are here

function fb_canvas_primary_links in Drupal for Facebook 5.2

Same name and namespace in other branches
  1. 5 fb_canvas.module \fb_canvas_primary_links()

File

./fb_canvas.module, line 395
This module provides some app-specific navigation to facebook apps.

Code

function fb_canvas_primary_links() {
  global $fb_app;
  $mid = 0;
  if ($fb_app) {
    $fb_app_data = fb_app_get_data($fb_app);
    $fb_canvas_data = $fb_app_data['fb_canvas'];
    $mid = $fb_canvas_data['primary_links'];
  }
  if ($mid) {
    return menu_primary_links(1, $mid);
  }
  else {
    return menu_primary_links();
  }
}