You are here

function _encryptfapi_test_form_element_types in Encrypt Form API 7.2

2 calls to _encryptfapi_test_form_element_types()
EncryptFAPITest::elementTypes in ./encryptfapi.test
Returns list of element types to test.
encryptfapi_test_form in tests/encryptfapi_test.module
The form.

File

tests/encryptfapi_test.module, line 96
Declares a form to test Form API encryption.

Code

function _encryptfapi_test_form_element_types() {
  $element_types = array(
    'textfield' => array(
      'name' => 'textfield',
      'label' => t('text'),
    ),
    'textarea' => array(
      'name' => 'textarea',
      'label' => t('text area'),
    ),
    'checkbox' => array(
      'name' => 'checkbox',
      'label' => t('checkbox'),
    ),
    'checkboxes' => array(
      'name' => 'checkboxes',
      'label' => t('checkboxes'),
      'options' => TRUE,
    ),
    'radio' => array(
      'name' => 'radio',
      'label' => t('radio'),
    ),
    'radios' => array(
      'name' => 'radios',
      'label' => t('radios'),
      'options' => TRUE,
    ),
    'select' => array(
      'name' => 'select',
      'label' => t('select'),
      'options' => TRUE,
    ),
    'password' => array(
      'name' => 'password',
      'label' => t('password'),
      'default_value' => FALSE,
    ),
    'password_confirm' => array(
      'name' => 'password_confirm',
      'label' => t('password confirm'),
      'default_value' => FALSE,
    ),
  );
  return $element_types;
}