Fix for PHP help, printing a list instead of a table

  1. function template_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_table_cell($cell, TRUE);
  10.   }
  11. }

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.