Prepares a field definition for the current run-time context.
$field: The raw field structure as read from the database.
The field definition completed for the current runtime context.
public function prepareField($field) {
// Make sure all expected field settings are present.
$field['settings'] += field_info_field_settings($field['type']);
$field['storage']['settings'] += field_info_storage_settings($field['storage']['type']);
return $field;
}