1 entityreference.install entityreference_update_1001()

Update each field base that references old plugin name "views-select-list" to "views".

File

core/modules/entityreference/entityreference.install, line 61

Code

function entityreference_update_1001() {
  foreach (field_info_fields() as $field_name => $field) {
    // Update the field configuration.
    if ($field['type'] == 'entityreference') {
      $settings = &$field['settings'];
      if (isset($settings['handler_settings']['behaviors']['views-select-list'])) {
        $settings['handler_settings']['behaviors']['views'] = $settings['handler_settings']['behaviors']['views-select-list'];
        unset($settings['handler_settings']['behaviors']['views-select-list']);
        field_update_field($field);
      }
    }
  }
}