You are here

function acquia_search_install in Acquia Search 2.x

Same name and namespace in other branches
  1. 6.3 acquia_search.install \acquia_search_install()
  2. 6 acquia_search.install \acquia_search_install()
  3. 3.x acquia_search.install \acquia_search_install()

Implements hook_install().

File

./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();
}