You are here

function theme_sortable_header_links in Drupal for Facebook 5

Same name and namespace in other branches
  1. 5.2 fb_views.module \theme_sortable_header_links()
  2. 6.3 fb_views/fb_views.module \theme_sortable_header_links()
  3. 6.2 fb_views/fb_views.module \theme_sortable_header_links()
  4. 7.3 fb_views/fb_views.module \theme_sortable_header_links()
1 theme call to theme_sortable_header_links()
theme_views_fb_discussion in ./fb_views.module

File

./fb_views.module, line 156

Code

function theme_sortable_header_links($items = array()) {
  if (!empty($items)) {
    $output .= "<ul class=\"links sortable_header_links\">";
    $output .= "<li class=\"first\">" . t('Sort by') . '</li>';
    foreach ($items as $item) {
      $output .= '<li>' . $item . '</li>';
    }
    $output .= "</ul>";
  }
  return $output;
}