You are here

function bootstrap_library_update_7002 in Bootstrap Library 7

Implementation of hook_update().

File

./bootstrap_library.install, line 57
bootstrap_library.install Installation and update functions for the Bootstrap Library Module

Code

function bootstrap_library_update_7002() {
  $theme = variable_get('theme_default', NULL);
  $settings = variable_get('bootstrap_library_settings');
  $update = FALSE;
  if (!isset($settings['theme']['visibility'])) {
    $settings['theme'] = array(
      'visibility' => 1,
      'themes' => array(
        $theme => $theme,
      ),
    );
    $update = TRUE;
  }
  if (!isset($settings['minimized']['options'])) {
    $settings['minimized'] = array(
      'options' => 0,
    );
    $update = TRUE;
  }
  if ($update) {
    variable_set('bootstrap_library_settings', $settings);
  }
}