summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2006-11-21 08:16:39 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2006-11-21 08:16:39 +0000
commit001d54f663136894ce0dce0a09693cc107cfb788 (patch)
tree745c0a9479855e27b331cf5b7a03ddebd2f8dd29 /includes
parent50641eafc0bfd321e09f71ab361dcf5c26469878 (diff)
downloadbrdo-001d54f663136894ce0dce0a09693cc107cfb788.tar.gz
brdo-001d54f663136894ce0dce0a09693cc107cfb788.tar.bz2
#84961: Add 'select all' and range select feature to admin tables.
Diffstat (limited to 'includes')
-rw-r--r--includes/theme.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index e90fb36f1..2dcbc021f 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -779,6 +779,16 @@ function theme_table($header, $rows, $attributes = array(), $caption = NULL) {
}
/**
+ * Returns a header cell for tables that have a select all functionality.
+ */
+function theme_table_select_header_cell() {
+ drupal_add_js(array('tableSelect' => array('selectAll' => t('Select all rows in this table'), 'selectNone' => t('Deselect all rows in this table'))), 'setting');
+ drupal_add_js('misc/tableselect.js');
+
+ return array('class' => 'select-all');
+}
+
+/**
* Return a themed sort icon.
*
* @param $style