advanced_forum.install
996 Bytes
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
<?php
/**
* @file
* Installation code for Advanced Forum.
*/
function advanced_forum_install() {
db_update('system')
->fields(array('weight' => 15))
->condition('name', 'advanced_forum')
->execute();
}
function advanced_forum_uninstall() {
db_delete('variable')
->condition('name', "advanced_forum_%", "LIKE")
->execute();
cache_clear_all('variables', 'cache_bootstrap');
}
function advanced_forum_update_5000() {
db_update('system')
->fields(array('weight' => 10))
->condition('name', 'advanced_forum')
->execute();
}
function advanced_forum_update_5003() {
db_drop_table('advforum_last_post');
}
function advanced_forum_update_5005() {
db_update('system')
->fields(array('weight' => 15))
->condition('name', 'advanced_forum')
->execute();
}
function advanced_forum_update_7200() {
if (variable_get('advanced_forum_forum_disabled') == NULL) {
variable_set('advanced_forum_forum_disabled', FALSE);
}
}