summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-01-28 07:43:26 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-01-28 07:43:26 +0000
commitad99dd761a7e11256200d959f10c9898befa8176 (patch)
treebe658215f4af3a0a3fb56126fb11b829ce8f3b9a /modules/system
parentf16eccbe9d0199385e0334b1692d6a1ec7225917 (diff)
downloadbrdo-ad99dd761a7e11256200d959f10c9898befa8176.tar.gz
brdo-ad99dd761a7e11256200d959f10c9898befa8176.tar.bz2
#242962 by Heine: Add a 'tablesort' Form API element to unify various places we use a big table with JS-enabled checkboxes next to each item (with tests).
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/system.module9
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index 581ae0aab..a7ac5d319 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -354,7 +354,14 @@ function system_elements() {
'#input' => TRUE,
'#size' => 60,
);
-
+ $type['tableselect'] = array(
+ '#input' => TRUE,
+ '#js_select' => TRUE,
+ '#multiple' => TRUE,
+ '#process' => array('form_process_tableselect'),
+ '#options' => array(),
+ '#empty' => '',
+ );
/**
* Form structure.