You are here

function blockreference_field_widget_settings_form in Block reference 7.2

Same name and namespace in other branches
  1. 7 blockreference.module \blockreference_field_widget_settings_form()

Implements hook_field_widget_settings_form().

File

./blockreference.field.inc, line 260

Code

function blockreference_field_widget_settings_form($field, $instance) {
  if ($instance['widget']['type'] == 'blockreference_autocomplete') {
    $form['blockreference_ac_match_method'] = array(
      '#type' => 'radios',
      '#title' => t('Autocomplete match method'),
      '#options' => array(
        'contains' => t('Contains string'),
        'startswith' => t('Starts with string'),
      ),
      '#default_value' => _blockreference_get_ac_match_method_from_field($instance),
    );
    return $form;
  }
}