1 search.install search_update_1003()

Set a default for the new search_pager_type setting if not already set.

Related topics

File

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

Code

function search_update_1003() {
  $config = config('search.settings');
  if ($config->get('search_pager_type') === NULL) {
    $config->set('search_pager_type', 'full');
    $config->save();
  }
}