You are here

function security_review_modules_installed in Security Review 8

Implements hook_modules_installed().

File

./security_review.module, line 68
Site security review and reporting Drupal module.

Code

function security_review_modules_installed($modules) {

  // Post-install hook.
  if (in_array('security_review', $modules)) {

    /** @var \Drupal\security_review\SecurityReview $security_review */
    $security_review = Drupal::service('security_review');

    // Clean orphaned checks.
    $security_review
      ->cleanStorage();

    // Store the web server's user.
    $security_review
      ->setServerData();
  }
}