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

Returns a field type's default instance settings.


$type A field type name.

Return value

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

Related topics

▾ 3 functions call field_info_instance_settings()

FieldInfoTestCase::testSettingsInfo in modules/field/tests/field.test
Test that the field_info settings convenience functions work.
_field_info_prepare_instance in modules/field/
Prepares an instance definition for the current run-time context.
_field_write_instance in modules/field/
Stores an instance record in the field configuration database.


modules/field/, line 845

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