Change the Bootswatch theme to Simplex 3.3.7.

This commit is contained in:
Michael Stenta 2017-05-19 17:07:21 -04:00
parent 41f1f9d612
commit b33c82f014
1 changed files with 13 additions and 0 deletions

View File

@ -510,6 +510,19 @@ function farm_update_7022(&$sandbox) {
_farm_update_enable_modules(array('field_group'));
}
/**
* Change the Bootswatch theme to Simplex 3.3.7.
*/
function farm_update_7023(&$sandbox) {
$theme_settings = variable_get('theme_farm_theme_settings', array());
$theme_settings['bootstrap_cdn_provider'] = 'custom';
$theme_settings['bootstrap_cdn_custom_css_min'] = '//cdn.jsdelivr.net/bootswatch/3.3.7/simplex/bootstrap.css';
$theme_settings['bootstrap_cdn_custom_css'] = '//cdn.jsdelivr.net/bootswatch/3.3.7/simplex/bootstrap.min.css';
$theme_settings['bootstrap_cdn_custom_js'] = '//cdn.jsdelivr.net/bootstrap/3.3.7/js/bootstrap.js';
$theme_settings['bootstrap_cdn_custom_js_min'] = '//cdn.jsdelivr.net/bootstrap/3.3.7/js/bootstrap.min.js';
variable_set('theme_farm_theme_settings', $theme_settings);
}
/**
* Update helper function: enable modules.
*/