1 form_test.module | _form_test_tableselect_js_select_form($form, $form_state, $action) |
Test functionality of the tableselect #js_select property.
File
- core/
modules/ simpletest/ tests/ form_test.module, line 780 - Helper module for the Form API tests.
Code
function _form_test_tableselect_js_select_form($form, $form_state, $action) {
switch ($action) {
case 'multiple-true-default':
$options = array('#multiple' => TRUE);
break;
case 'multiple-false-default':
$options = array('#multiple' => FALSE);
break;
case 'multiple-true-no-advanced-select':
$options = array('#multiple' => TRUE, '#js_select' => FALSE);
break;
case 'multiple-false-advanced-select':
$options = array('#multiple' => FALSE, '#js_select' => TRUE);
break;
}
return _form_test_tableselect_form_builder($form, $form_state, $options);
}