1 field.crud.inc field_defaults_instance()

Provides a list of defaults for instance arrays.

Related topics

File

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

Code

function field_defaults_instance() {
  return array(
    'field_name' => NULL,
    'entity_type' => NULL,
    'bundle' => NULL,
    'label' => '',
    'description' => '',
    'required' => 0,
    'deleted' => 0,
    'default_value' => NULL,
    'default_value_function' => NULL,
    'widget' => array(),
    'settings' => array(),
    'display' => array(),
  );
}