Fix for printing a list, instead of a table header

  1. function honu_preprocess_forum_topic_list(&$variables) {
  2.   global $forum_topic_list_header;
  3.  
  4.   // Create the tablesorting header.
  5.   $ts = tablesort_init($forum_topic_list_header);
  6.   $header = '';
  7.   foreach ($forum_topic_list_header as $cell) {
  8.     $cell = tablesort_header($cell, $forum_topic_list_header, $ts);
  9.     $header .= theme_item_list($cell, NULL, 'ul', array('class' => 'topic-sort'));
  10.   }
  11.   $variables['header'] = $header;
  12. }

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.