? files ? theme_table_0.patch Index: includes/theme.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/theme.inc,v retrieving revision 1.256 diff -u -F^f -r1.256 theme.inc --- includes/theme.inc 28 Aug 2005 15:29:34 -0000 1.256 +++ includes/theme.inc 5 Sep 2005 07:08:31 -0000 @@ -692,13 +692,19 @@ function theme_submenu($links) { * * @param $attributes * An array of HTML attributes to apply to the table tag. + * @param $caption + * A localized string to use for the tag. * @return * An HTML string representing the table. */ -function theme_table($header, $rows, $attributes = NULL) { +function theme_table($header, $rows, $attributes = NULL, $caption = NULL) { $output = '\n"; + if (isset($caption)) { + $output .= '' . $caption . "\n"; + } + // Format the table header: if (count($header)) { $ts = tablesort_init($header);