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