function field_info_storage_settings

Returns a field storage type's default settings.

Parameters

$type: A field storage type name.

Return value

The storage type's default settings, as provided by hook_field_storage_info(), or an empty array if type or settings are undefined.

Related topics

2 calls to field_info_storage_settings()
FieldInfo::prepareField in modules/field/field.info.class.inc
Prepares a field definition for the current run-time context.
field_create_field in modules/field/field.crud.inc
Creates a field.

File

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

Code

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

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