function field_info_instance_settings

Returns a field type's default instance settings.

Parameters

$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 calls to field_info_instance_settings()
FieldInfo::prepareInstance in modules/field/field.info.class.inc
Prepares an instance definition for the current run-time context.
FieldInfoTestCase::testSettingsInfo in modules/field/tests/field.test
Test that the field_info settings convenience functions work.
_field_write_instance in modules/field/field.crud.inc
Stores an instance record in the field configuration database.

File

modules/field/field.info.inc, line 761

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.