function configuration_field_load in Configuration Management 7
Load a field's configuration and instance configuration by an entity_type-bundle-field_name identifier.
2 calls to configuration_field_load()
- field_configuration_export in includes/
configuration.field.inc - Implements hook_configuration_export().
- field_configuration_export_render in includes/
configuration.field.inc - Implements hook_configuration_export_render().
File
- includes/
configuration.field.inc, line 200
Code
function configuration_field_load($identifier) {
list($entity_type, $bundle, $field_name) = explode('-', $identifier);
$field_info = field_info_field($field_name);
$instance_info = field_info_instance($entity_type, $field_name, $bundle);
if ($field_info && $instance_info) {
unset($field_info['id']);
unset($field_info['bundles']);
unset($instance_info['id']);
unset($instance_info['field_id']);
return array(
'field_config' => $field_info,
'field_instance' => $instance_info,
);
}
return FALSE;
}