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

parameter array.
4.4.x
Dries Buytaert 2004-01-31 21:07:54 +00:00
parent 252cf676ae
commit 294286687a
1 changed files with 2 additions and 2 deletions

View File

@ -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: