You are here

function fb_fbml_menu_item_link in Drupal for Facebook 6.2

File

themes/fb_fbml/template.php, line 131
Logic needed for FBML theme.

Code

function fb_fbml_menu_item_link($link) {
  global $_fb_canvas_state;
  if ($_fb_canvas_state == 'tabs') {

    // Theme an FBML tab
    $output = "<fb:tab-item href=\"" . url($link['href']) . (isset($link['title']) ? "\" title=\"" . $link['title'] : '') . "\" selected=\"false\">" . $link['title'] . "</fb:tab-item>\n";
    return $output;
  }
  else {
    return theme_menu_item_link($link);
  }
}