function _form_test_tableselect_js_select_form

Test functionality of the tableselect #js_select property.

1 string reference to '_form_test_tableselect_js_select_form'
form_test_menu in modules/simpletest/tests/form_test.module
Implements hook_menu().

File

modules/simpletest/tests/form_test.module, line 682

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.