-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbreakpoints.install
40 lines (36 loc) · 1.06 KB
/
breakpoints.install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* @file
* Breakpoints
*/
/**
* Implements hook_enable().
* Import breakpoints from all enabled themes.
*/
function breakpoints_enable() {
$themes = list_themes();
foreach ($themes as $theme_key => $theme) {
if (!$theme->status) {
unset($themes[$theme_key]);
}
}
breakpoints_themes_enabled(array_keys($themes));
}
/**
* Implements hook_update_last_removed().
*/
function breakpoints_update_last_removed() {
return 7102;
}
/**
* Implements hook_update_N().
*/
function breakpoints_update_1000() {
$config = config('breakpoints.settings');
$config->set('hide_overridden_breakpoints', update_variable_get('breakpoints_hide_overridden_breakpoints', 1));
$config->set('multipliers', update_variable_get('breakpoints_multipliers', ['1x', '1.5x', '2x']));
$config->set('flush_caches_disabled', update_variable_get('breakpoints_flush_caches_disabled', 0));
update_variable_del('breakpoints_hide_overridden_breakpoints');
update_variable_del('breakpoints_multipliers');
update_variable_del('breakpoints_flush_caches_disabled');
}