From ad99dd761a7e11256200d959f10c9898befa8176 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 28 Jan 2009 07:43:26 +0000 Subject: #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). --- modules/system/system.module | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'modules/system') 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. -- cgit v1.2.3