function pace_update_8102 in PACE - Page load progress bar 2.0.x
Same name and namespace in other branches
- 8 pace.install \pace_update_8102()
Add colored PACE themes.
File
- ./
pace.install, line 26 - Presets PACE theme to minimal upon installation.
Code
function pace_update_8102() {
$message = 'Your PACE settings have been reset to the "minimal" theme!';
$config_factory = \Drupal::configFactory();
$config = $config_factory
->getEditable('pace.settings');
$config
->set('pace_theme', 'minimal');
$config
->set('pace_color', 'blue');
$config
->save(TRUE);
return $message;
}