From 001d54f663136894ce0dce0a09693cc107cfb788 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Tue, 21 Nov 2006 08:16:39 +0000 Subject: #84961: Add 'select all' and range select feature to admin tables. --- includes/theme.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'includes') diff --git a/includes/theme.inc b/includes/theme.inc index e90fb36f1..2dcbc021f 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -778,6 +778,16 @@ function theme_table($header, $rows, $attributes = array(), $caption = NULL) { return $output; } +/** + * 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. * -- cgit v1.2.3