1 form_test.module form_test_checkbox_type_juggling($form, $form_state, $default_value, $return_value)

File

core/modules/simpletest/tests/form_test.module, line 2461
Helper module for the Form API tests.

Code

function form_test_checkbox_type_juggling($form, $form_state, $default_value, $return_value) {
  $form['checkbox'] = array(
    '#type' => 'checkbox',
    '#return_value' => $return_value,
    '#default_value' => $default_value,
  );
  return $form;
}