diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-01-31 21:07:54 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-01-31 21:07:54 +0000 |
commit | 294286687a9ea1a327469e25580f5836106ab61f (patch) | |
tree | 34821657a89c018b80e255725fb914cb624fd74d | |
parent | 252cf676ae747aa5597cb359cb9315632581032a (diff) | |
download | brdo-294286687a9ea1a327469e25580f5836106ab61f.tar.gz brdo-294286687a9ea1a327469e25580f5836106ab61f.tar.bz2 |
- Patch #5163 by mattias: allow theme_table to accept a html attributes
parameter array.
-rw-r--r-- | includes/theme.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index eb0b53ae6..e71c01e30 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -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: |