function bootstrap_library_update_7003 in Bootstrap Library 7
Adds file types settings.
File
- ./
bootstrap_library.install, line 80 - bootstrap_library.install Installation and update functions for the Bootstrap Library Module
Code
function bootstrap_library_update_7003() {
$settings = variable_get('bootstrap_library_settings');
$update = FALSE;
// Set file types if not set.
if (!isset($settings['files']['types'])) {
$settings['files']['types'] = array(
'css' => 'css',
'js' => 'js',
);
$update = TRUE;
}
if ($update) {
variable_set('bootstrap_library_settings', $settings);
}
}