You are here

function simple_gse_search_install in Simple Google Custom Search Engine 2.0.x

Implements hook_install().

File

./simple_gse_search.install, line 11
Contains the install hooks.

Code

function simple_gse_search_install() {
  $moduleHandler = \Drupal::service('module_handler');

  // Display a warning if the search module is enabled.
  if ($moduleHandler
    ->moduleExists('search')) {
    \Drupal::messenger()
      ->addWarning('Core search module is installed! Please uninstall the module for the "Simple Google Custom Search Engine" module to work properly.');
  }
}