You are here

function fb_fbml_menu_local_task in Drupal for Facebook 6.2

File

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

Code

function fb_fbml_menu_local_task($link, $active = FALSE) {
  global $_fb_canvas_state;
  if ($_fb_canvas_state == 'tabs') {
    if ($active) {
      $link = str_replace('selected="false"', 'selected="true"', $link);
    }
    return $link;
  }
  else {
    return theme_menu_local_task($link, $active);
  }
}