You are here

function entity_background_get_field_eb_selection in Entity background 7

Create eb_selection field.

Return value

array An field information array.

1 call to entity_background_get_field_eb_selection()
entity_background_add_field_eb_selection in includes/entity_background.fields_crud.inc
Creates eb_selection field instance.

File

includes/entity_background.fields_crud.inc, line 101
Fields CRUD functions.

Code

function entity_background_get_field_eb_selection() {
  $field = _entity_background_get_field(array(
    'field_name' => EB_SELECTION_FIELD,
    'type' => 'list_text',
    'cardinality' => 1,
    'settings' => array(
      'allowed_values' => array(),
      'allowed_values_function' => 'entity_background_selection_list',
    ),
  ));
  return $field;
}