Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
315
Merge Requests
315
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
39f26516
Commit
39f26516
authored
Apr 25, 2009
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#336475
by j.somers: Make sticky tableheaders optional.
parent
3564fb04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
includes/theme.inc
includes/theme.inc
+4
-2
No files found.
includes/theme.inc
View file @
39f26516
...
...
@@ -1327,13 +1327,15 @@ function theme_submenu($links) {
* These optional tags are used to group and set properties on columns
* within a table. For example, one may easily group three columns and
* apply same background style to all.
* @param $sticky
* Use a "sticky" table header.
* @return
* An HTML string representing the table.
*/
function
theme_table
(
$header
,
$rows
,
$attributes
=
array
(),
$caption
=
NULL
,
$colgroups
=
array
())
{
function
theme_table
(
$header
,
$rows
,
$attributes
=
array
(),
$caption
=
NULL
,
$colgroups
=
array
()
,
$sticky
=
TRUE
)
{
// Add sticky headers, if applicable.
if
(
count
(
$header
))
{
if
(
count
(
$header
)
&&
$sticky
)
{
drupal_add_js
(
'misc/tableheader.js'
);
// Add 'sticky-enabled' class to the table to identify it for JS.
// This is needed to target tables constructed by this function.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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