You are here

function lightning_landing_page_install in Lightning Layout 8

Same name and namespace in other branches
  1. 8.2 modules/lightning_landing_page/lightning_landing_page.install \lightning_landing_page_install()

Implements hook_install().

File

modules/lightning_landing_page/lightning_landing_page.install, line 11
Contains installation and update routines for Lightning Landing Page.

Code

function lightning_landing_page_install() {
  $module_handler = Drupal::moduleHandler();
  $modules = [];
  if ($module_handler
    ->moduleExists('lightning_search')) {
    array_push($modules, 'lightning_search');
  }
  if ($module_handler
    ->moduleExists('lightning_workflow')) {
    array_push($modules, 'lightning_workflow');
  }
  if ($module_handler
    ->moduleExists('menu_ui')) {
    array_push($modules, 'menu_ui');
  }
  if ($modules) {
    lightning_landing_page_modules_installed($modules);
  }
}