You are here

function lightning_layout_install in Lightning Layout 8

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

Implements hook_install().

File

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

Code

function lightning_layout_install() {

  // Set up layout_manager permissions.
  lightning_layout_update_8003();

  // Add layout permissions to Lightning Roles' content role configuration.
  if (\Drupal::moduleHandler()
    ->moduleExists('lightning_roles')) {
    lightning_layout_modules_installed([
      'lightning_roles',
    ]);
  }
}