summaryrefslogtreecommitdiff
path: root/modules
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 /modules
parent50641eafc0bfd321e09f71ab361dcf5c26469878 (diff)
downloadbrdo-001d54f663136894ce0dce0a09693cc107cfb788.tar.gz
brdo-001d54f663136894ce0dce0a09693cc107cfb788.tar.bz2
#84961: Add 'select all' and range select feature to admin tables.
Diffstat (limited to 'modules')
-rw-r--r--modules/comment/comment.module2
-rw-r--r--modules/node/node.module2
-rw-r--r--modules/system/system.css7
-rw-r--r--modules/user/user.module2
4 files changed, 10 insertions, 3 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 1873c1b84..8ba74e689 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1044,7 +1044,7 @@ function comment_admin_overview($type = 'new', $arg) {
// load the comments that we want to display
$status = ($type == 'approval') ? COMMENT_NOT_PUBLISHED : COMMENT_PUBLISHED;
$form['header'] = array('#type' => 'value', '#value' => array(
- NULL,
+ theme('table_select_header_cell'),
array('data' => t('Subject'), 'field' => 'subject'),
array('data' => t('Author'), 'field' => 'name'),
array('data' => t('Time'), 'field' => 'timestamp', 'sort' => 'desc'),
diff --git a/modules/node/node.module b/modules/node/node.module
index ef0b949d2..2ce5863db 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1533,7 +1533,7 @@ function node_admin_nodes() {
*/
function theme_node_admin_nodes($form) {
// Overview table:
- $header = array(NULL, t('Title'), t('Type'), t('Author'), t('Status'), t('Operations'));
+ $header = array(theme('table_select_header_cell'), t('Title'), t('Type'), t('Author'), t('Status'), t('Operations'));
$output .= drupal_render($form['options']);
if (isset($form['title']) && is_array($form['title'])) {
diff --git a/modules/system/system.css b/modules/system/system.css
index c801759d6..5a92c5a89 100644
--- a/modules/system/system.css
+++ b/modules/system/system.css
@@ -325,3 +325,10 @@ html.js .resizable-textarea textarea {
display: block;
padding: 1.5em 0 .5em;
}
+
+/*
+** To be used with tableselect.js
+*/
+tr.selected td {
+ background: #ffc;
+}
diff --git a/modules/user/user.module b/modules/user/user.module
index d9e7fcb66..d35f36ecd 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -2043,7 +2043,7 @@ function user_admin_account() {
function theme_user_admin_account($form) {
// Overview table:
$header = array(
- array(),
+ theme('table_select_header_cell'),
array('data' => t('Username'), 'field' => 'u.name'),
array('data' => t('Status'), 'field' => 'u.status'),
t('Roles'),