From 3b1e763d03c92bd38b82b75d4e3271802f2a1506 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 6 Sep 2005 20:32:53 +0000 Subject: - Patch #30423 by Crell: added support for table . TODO: look into http://drupal.org/node/28777? --- includes/theme.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/theme.inc b/includes/theme.inc index 5046fc19f..d6ded08ed 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -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); -- cgit v1.2.3