Commit 29428668 authored by Dries's avatar Dries
Browse files

- Patch #5163 by mattias: allow theme_table to accept a html attributes

  parameter array.
parent 252cf676
......@@ -306,9 +306,9 @@ function theme_form_element($title, $value, $description = NULL, $id = NULL) {
* @return a string containing the @a node output.
*/
function theme_table($header, $rows) {
function theme_table($header, $rows, $attributes = NULL) {
$output = "<table>\n";
$output = "<table ". drupal_attributes($attributes) .">\n";
/*
** Emit the table 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