> @@ -76,6 +76,7 @@ function inline_entity_form_field_widget_info() {
>      'settings' => array(
>        'fields' => array(),
>        'type_settings' => array(),
> +      'match_operator' => 'CONTAINS',
>      ),
>      'behaviors' => array(
>        'multiple values' => FIELD_BEHAVIOR_CUSTOM,
> @@ -116,6 +117,16 @@ function inline_entity_form_field_widget_settings_form($field, $instance) {
>      );
>      $element['type_settings'] += $settings_form;
>    }
> +  $element['match_operator'] = array(
> +    '#type' => 'select',
> +    '#title' => t('Autocomplete matching'),
> +    '#default_value' => $settings['match_operator'],
> +    '#options' => array(
> +      'STARTS_WITH' => t('Starts with'),
> +      'CONTAINS' => t('Contains'),
> +    ),
> +    '#description' => t('Select the method used to collect autocomplete suggestions. Note that <em>Contains</em> can cause performance issues on sites with thousands of nodes.'),
> +  );
>
>    return $element;
>  }
