1 search.install search_update_1001()

Add the default value for the "search_logging" configuration value.

Related topics

File

core/modules/search/search.install, line 193
Install, update and uninstall functions for the search module.

Code

function search_update_1001() {
  $config = config('search.settings');
  // Make loading search settings cache now that it may be used multiple times.
  $config->set('_config_static', TRUE);
  // Update the variable if upgrading from Drupal.
  $config->set('search_logging', update_variable_get('search_logging', TRUE));
  $config->save();

  update_variable_del('search_logging');
}