You are here

function lightbox2_update_6001 in Lightbox2 8

Same name and namespace in other branches
  1. 6 lightbox2.install \lightbox2_update_6001()
  2. 7.2 lightbox2.install \lightbox2_update_6001()
  3. 7 lightbox2.install \lightbox2_update_6001()

File

./lightbox2.install, line 179
Installation functions for Lightbox2.

Code

function lightbox2_update_6001() {
  $size = \Drupal::config('lightbox2.settings')
    ->get('lightbox2_display_image_size');
  if ($size == '') {
    \Drupal::configFactory()
      ->getEditable('lightbox2.settings')
      ->set('lightbox2_display_image_size', 'original')
      ->save();
  }
  return array();
}