1. drupal
    1. 8
    2. 7
7 – 8 field_info_field_settings($type)

Returns a field type's default settings.


$type A field type name.

Return value

The field type's default settings, as provided by hook_field_info(), or an empty array if type or settings are not defined.

Related topics

▾ 5 functions call field_info_field_settings()

FieldInfoTestCase::testSettingsInfo in modules/field/tests/field.test
Test that the field_info settings convenience functions work.
field_create_field in modules/field/
Creates a field.
file_field_settings_form in modules/file/
Implements hook_field_settings_form().
image_field_settings_form in modules/image/
Implements hook_field_settings_form().
_field_info_prepare_field in modules/field/
Prepares a field definition for the current run-time context.


modules/field/, line 830

function field_info_field_settings($type) {
  $info = field_info_field_types($type);
  return isset($info['settings']) ? $info['settings'] : array();