summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries Buytaert2010-10-03 01:04:51 (GMT)
committerDries Buytaert2010-10-03 01:04:51 (GMT)
commit69e9e3e3a2c2d52a149914565fa451ed967280e1 (patch)
treeb072286df85b528ec8f086053d7489d98f43acd3
parent9a0b424407d2f7eed0e9c8a84f5b2c7b52cca980 (diff)
- Patch #891476 by solotandem: improved code comments
-rw-r--r--includes/form.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/form.inc b/includes/form.inc
index faaa75d..ed5fa28 100644
--- a/includes/form.inc
+++ b/includes/form.inc
@@ -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, '');
}
}