1 field.crud.inc field_defaults_field()

Provides a list of default settings for a field.

Related topics

File

core/modules/field/field.crud.inc, line 410
Field CRUD API, handling field and field instance creation and deletion.

Code

function field_defaults_field() {
  return array(
    'field_name' => '',
    'type' => '',
    'module' => '',
    'active' => 1,
    'locked' => 0,
    'cardinality' => 1,
    'translatable' => 0,
    'deleted' => 0,
    'entity_types' => array(),
    'settings' => array(),
    'storage' => array(),
  );
}