function form_test_empty_select

Builds a form to test select elements when #options is not an array.

1 string reference to 'form_test_empty_select'
form_test_menu in drupal/core/modules/system/tests/modules/form_test/form_test.module
Implements hook_menu().

File

drupal/core/modules/system/tests/modules/form_test/form_test.module, line 1320
Helper module for the form API tests.

Code

function form_test_empty_select($form, &$form_state) {
  $form['empty_select'] = array(
    '#type' => 'select',
    '#title' => t('Empty Select'),
    '#multiple' => FALSE,
    '#options' => NULL,
  );
  return $form;
}