diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-09-06 20:32:53 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-09-06 20:32:53 +0000 |
commit | 3b1e763d03c92bd38b82b75d4e3271802f2a1506 (patch) | |
tree | 7ee22086cedffedc10edc1be0eef675f54adcfaa | |
parent | 67de4f67d2fc3f28523558bd0e82a34286a813fe (diff) | |
download | brdo-3b1e763d03c92bd38b82b75d4e3271802f2a1506.tar.gz brdo-3b1e763d03c92bd38b82b75d4e3271802f2a1506.tar.bz2 |
- Patch #30423 by Crell: added support for table <captions>.
TODO: look into http://drupal.org/node/28777?
-rw-r--r-- | includes/theme.inc | 8 |
1 files changed, 7 insertions, 1 deletions
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 <caption> 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 = '<table'. drupal_attributes($attributes) .">\n"; + if (isset($caption)) { + $output .= '<caption>'. $caption ."</caption>\n"; + } + // Format the table header: if (count($header)) { $ts = tablesort_init($header); |