You are here

function acquia_search_install in Acquia Connector 8

Same name and namespace in other branches
  1. 8.2 acquia_search/acquia_search.install \acquia_search_install()
  2. 7 acquia_search/acquia_search.install \acquia_search_install()
  3. 7.2 acquia_search/acquia_search.install \acquia_search_install()

Implements hook_install().

File

acquia_search/acquia_search.install, line 14
Install, update, and uninstall functions for the Acquia Connector module.

Code

function acquia_search_install() {

  // Send a heartbeat so the Acquia Network knows the module is enabled.
  // This causes an invocation of hook_acquia_subscription_status() which is
  // implemented in this module to set up the environment.
  // Rebuild data about all currently available modules.
  \Drupal::service('extension.list.module')
    ->reset();
  _acquia_search_set_version();
  $subscription = new Subscription();
  $subscription
    ->update();
}