-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmaxlength.install
65 lines (58 loc) · 2.85 KB
/
maxlength.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/**
* @file
* Install, update and uninstall functions for the Maxlength module.
*/
/**
* @todo: Migrate node title
* @todo: Should we use maxlength_ for hook_uninstall instead of maxlength_js_.
*/
/**
* Implements hook_uninstall().
*/
function maxlength_uninstall() {
}
/**
* Implements hook_update_last_removed().
*/
function maxlength_update_last_removed() {
return 7302;
}
/**
* Implements hook_update_N().
*/
function maxlength_update_1000() {
$config = config('maxlength.settings');
$config->set('maxlength_body_type', update_variable_get('maxlength_body_type', 'dynamic variable in file /maxlength/maxlength.install line 32'));
$config->set('maxlength_body_text_type', update_variable_get('maxlength_body_text_type', 'dynamic variable in file /maxlength/maxlength.install line 34'));
$config->set('maxlength_comment_comment_type', update_variable_get('maxlength_comment_comment_type', 'dynamic variable in file /maxlength/maxlength.install line 79'));
$config->set('maxlength_comment_comment_text_type', update_variable_get('maxlength_comment_comment_text_type', 'dynamic variable in file /maxlength/maxlength.install line 81'));
$config->set('maxlength_always_for_uid1', update_variable_get('maxlength_always_for_uid1', 'FALSE'));
$config->set('maxlength_js_formnodetype', update_variable_get('maxlength_js_formnodetype', 'dynamic variable in file /maxlength/maxlength.module line 257'));
$config->set('maxlength_js_label_formnodetype', update_variable_get('maxlength_js_label_formnodetype', 'dynamic variable in file /maxlength/maxlength.module line 260'));
$config->set('maxlength_js_formnode_typetype', update_variable_get('maxlength_js_formnode_typetype', 'dynamic variable in file /maxlength/maxlength.module line 280'));
$config->set('maxlength_js_label_formnode_typetype', update_variable_get('maxlength_js_label_formnode_typetype', 'dynamic variable in file /maxlength/maxlength.module line 287'));
update_variable_del('maxlength_body_type');
update_variable_del('maxlength_body_text_type');
update_variable_del('maxlength_comment_comment_type');
update_variable_del('maxlength_comment_comment_text_type');
update_variable_del('maxlength_always_for_uid1');
update_variable_del('maxlength_js_formnodetype');
update_variable_del('maxlength_js_label_formnodetype');
update_variable_del('maxlength_js_formnode_typetype');
update_variable_del('maxlength_js_label_formnode_typetype');
}
/**
* Implements hook_install().
*/
function maxlength_install() {
// Dynamically generated variable data was detected.
// /maxlength/maxlength.install line 32
// /maxlength/maxlength.install line 34
// /maxlength/maxlength.install line 79
// /maxlength/maxlength.install line 81
// /maxlength/maxlength.module line 257
// /maxlength/maxlength.module line 260
// /maxlength/maxlength.module line 280
// /maxlength/maxlength.module line 287
}