Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
29428668
Commit
29428668
authored
Jan 31, 2004
by
Dries Buytaert
Browse files
- Patch
#5163
by mattias: allow theme_table to accept a html attributes
parameter array.
parent
252cf676
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/theme.inc
View file @
29428668
...
...
@@ -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:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment