function fb_canvas_primary_links in Drupal for Facebook 5
Same name and namespace in other branches
- 5.2 fb_canvas.module \fb_canvas_primary_links()
File
- ./
fb_canvas.module, line 310 - This module provides some app-specific navigation to facebook apps. This is fairly experimental material. May change a lot in near future.
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();
}
}