Commit 3b1e763d authored by Dries's avatar Dries

- Patch #30423 by Crell: added support for table <captions>.

  TODO: look into http://drupal.org/node/28777?
parent 67de4f67
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment