You are here

function lightning_layout_install in Lightning Layout 8.2

Same name and namespace in other branches
  1. 8 lightning_layout.install \lightning_layout_install()

Implements hook_install().

File

./lightning_layout.install, line 14
Contains installation and update routines for Lightning Layout.

Code

function lightning_layout_install() {

  // React to other modules possibly being installed already.
  $modules = [
    'lightning_roles',
    'lightning_media',
  ];
  $modules = array_filter($modules, [
    Drupal::moduleHandler(),
    'moduleExists',
  ]);
  if ($modules) {
    lightning_layout_modules_installed($modules);
  }
}