You are here

function acquia_connector_modules_installed in Acquia Connector 8

Same name and namespace in other branches
  1. 8.2 acquia_connector.module \acquia_connector_modules_installed()
  2. 3.x acquia_connector.module \acquia_connector_modules_installed()

Implements hook_modules_installed().

File

./acquia_connector.module, line 297
Acquia Connector module.

Code

function acquia_connector_modules_installed($modules) {
  foreach ($modules as $module) {
    if (function_exists($module . '_acquia_connector_spi_test')) {
      \Drupal::messenger()
        ->addStatus(t("A new invocation of hook_acquia_connector_spi_test() has been detected in @module.", [
        '@module' => $module,
      ]));
      \Drupal::logger('acquia connector spi test')
        ->info("A new invocation of hook_acquia_connector_spi_test() has been detected in @module.", [
        '@module' => $module,
      ]);
    }
  }
}