You are here

function lightning_layout_update_8009 in Lightning Layout 8

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

Removes the Lightning third_party_settings from Layout Manager role.

File

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

Code

function lightning_layout_update_8009() {
  $role = Role::load('layout_manager');
  if ($role) {
    $role
      ->unsetThirdPartySetting('lightning', 'bundled');
    $role
      ->save();
  }
}