diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-10-03 01:04:51 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-10-03 01:04:51 +0000 |
commit | 69e9e3e3a2c2d52a149914565fa451ed967280e1 (patch) | |
tree | b072286df85b528ec8f086053d7489d98f43acd3 | |
parent | 9a0b424407d2f7eed0e9c8a84f5b2c7b52cca980 (diff) | |
download | brdo-69e9e3e3a2c2d52a149914565fa451ed967280e1.tar.gz brdo-69e9e3e3a2c2d52a149914565fa451ed967280e1.tar.bz2 |
- Patch #891476 by solotandem: improved code comments
-rw-r--r-- | includes/form.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/form.inc b/includes/form.inc index faaa75d5f..ed5fa2850 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, ''); } } |