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
69e9e3e3
Commit
69e9e3e3
authored
Oct 03, 2010
by
Dries Buytaert
Browse files
- Patch
#891476
by solotandem: improved code comments
parent
9a0b4244
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/form.inc
View file @
69e9e3e3
...
...
@@ -2977,12 +2977,13 @@ function theme_tableselect($variables) {
// Add an empty header or a "Select all" checkbox to provide room for the
// checkboxes/radios in the first table column.
if
(
$element
[
'#js_select'
])
{
// Add a "Select all" checkbox
when checkboxes are displayed
.
// Add a "Select all" checkbox.
drupal_add_js
(
'misc/tableselect.js'
);
array_unshift
(
$header
,
array
(
'class'
=>
array
(
'select-all'
)));
}
else
{
// Add an empty header when radio buttons are displayed.
// Add an empty header when radio buttons are displayed or a "Select all"
// checkbox is not desired.
array_unshift
(
$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