You are here

function features_field_base_load in Features 7.2

Loads a field base configuration by a field_name identifier.

Parameters

string $field_name: Field name to load.

Return value

array|false The field base definition array as from field_info_field(). The auto-increment keys 'id' and 'field_id' are removed, to reduce noise in the export. If the field base is not found, FALSE is returned.

2 calls to features_field_base_load()
field_base_features_export in includes/features.field.inc
Implements hook_features_export().
field_base_features_export_render in includes/features.field.inc
Implements hook_features_export_render().

File

includes/features.field.inc, line 382
Features integration on behalf of 'field' module.

Code

function features_field_base_load($field_name) {
  if ($field_info = field_info_field($field_name)) {
    unset($field_info['id']);
    unset($field_info['bundles']);
    return $field_info;
  }
  return FALSE;
}