public function Name_FieldTestCase::name_getFieldSettingsCheckboxes in Name Field 7
1 call to Name_FieldTestCase::name_getFieldSettingsCheckboxes()
- Name_FieldTestCase::testFieldEntry in tests/
name.test - The most basic test. This should only fail if there is a change to the Drupal API.
File
- tests/
name.test, line 1028 - Tests for the name module.
Class
- Name_FieldTestCase
- Tests for the admin settings and custom format page.
Code
public function name_getFieldSettingsCheckboxes() {
$field_settings = array(
'field[settings][components][title]' => TRUE,
'field[settings][components][given]' => TRUE,
'field[settings][components][middle]' => TRUE,
'field[settings][components][family]' => TRUE,
'field[settings][components][generational]' => TRUE,
'field[settings][components][credentials]' => TRUE,
'field[settings][minimum_components][title]' => FALSE,
'field[settings][minimum_components][given]' => TRUE,
'field[settings][minimum_components][middle]' => FALSE,
'field[settings][minimum_components][family]' => TRUE,
'field[settings][minimum_components][generational]' => FALSE,
'field[settings][minimum_components][credentials]' => FALSE,
'field[settings][sort_options][title]' => TRUE,
'field[settings][sort_options][generational]' => FALSE,
);
return $field_settings;
}