summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/theme.inc')
-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