-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpicture.install
47 lines (44 loc) · 1.88 KB
/
picture.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
41
42
43
44
45
46
47
<?php
/**
* @file
* Install hooks for the picture module.
*/
/**
* Implements hook_install().
*/
function picture_install() {
module_load_include('admin.inc', 'picture');
}
/**
* Implements hook_update_last_removed().
*/
function picture_update_last_removed() {
return 7203;
}
/**
* Implements hook_update_N().
*/
function picture_update_1000() {
$config = config('picture.settings');
$config->set('ckeditor_mappings', update_variable_get('picture_ckeditor_mappings', ''));
$config->set('ckeditor_label', update_variable_get('picture_ckeditor_label', ''));
$config->set('ckeditor_default_mapping', update_variable_get('picture_ckeditor_default_mapping', 'not_set'));
$config->set('js_scope', update_variable_get('picture_js_scope', 'footer'));
$config->set('polyfill_version', update_variable_get('picture_polyfill_version', 'min'));
$config->set('fallback_method', update_variable_get('picture_fallback_method', 'src'));
$config->set('img_sizes_output_method', update_variable_get('picture_img_sizes_output_method', 'picture_element'));
$config->set('ckeditor_groups', update_variable_get('picture_ckeditor_groups', ''));
$config->set('use_sizes_in_wysiwyg', update_variable_get('picture_use_sizes_in_wysiwyg', 0));
$config->set('ckeditor_required', update_variable_get('picture_ckeditor_required', 1));
update_variable_del('picture_ckeditor_mappings');
update_variable_del('picture_ckeditor_label');
update_variable_del('picture_ckeditor_default_mapping');
update_variable_del('picture_updated_to_file_entity_2');
update_variable_del('picture_js_scope');
update_variable_del('picture_polyfill_version');
update_variable_del('picture_fallback_method');
update_variable_del('picture_img_sizes_output_method');
update_variable_del('picture_ckeditor_groups');
update_variable_del('picture_use_sizes_in_wysiwyg');
update_variable_del('picture_ckeditor_required');
}