1 field.info.inc field_info_field_settings($type)

Returns a field type's default settings.

Parameters

$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

File

core/modules/field/field.info.inc, line 892
Field Info API, providing information about available fields and field types.

Code

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