You are here

better_search.install in Better Search Block 8

Better Search Install File.

File

better_search.install
View source
<?php

/**
 * @file
 * Better Search Install File.
 */

/**
 * Implements hook_update_N().
 */
function better_search_update_8001(&$sandbox) {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('better_search.settings');
  $config
    ->set('searchpage_enable', TRUE);
  $config
    ->set('searchpage_submit_not_visible', TRUE);
  $message = "Better Search Blocks enabled on search page and submit button is visually hidden";
  $config
    ->save(TRUE);
  return $message;
}

Functions

Namesort descending Description
better_search_update_8001 Implements hook_update_N().