Projet

Général

Profil

Paste
Télécharger (996 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / advanced_forum / advanced_forum.install @ 87dbc3bf

1
<?php
2

    
3
/**
4
 * @file
5
 * Installation code for Advanced Forum.
6
 */
7
function advanced_forum_install() {
8
  db_update('system')
9
      ->fields(array('weight' => 15))
10
      ->condition('name', 'advanced_forum')
11
      ->execute();
12
}
13

    
14
function advanced_forum_uninstall() {
15
  db_delete('variable')
16
      ->condition('name', "advanced_forum_%", "LIKE")
17
      ->execute();
18
  cache_clear_all('variables', 'cache_bootstrap');
19
}
20

    
21
function advanced_forum_update_5000() {
22
  db_update('system')
23
      ->fields(array('weight' => 10))
24
      ->condition('name', 'advanced_forum')
25
      ->execute();
26
}
27

    
28
function advanced_forum_update_5003() {
29
  db_drop_table('advforum_last_post');
30
}
31

    
32
function advanced_forum_update_5005() {
33
  db_update('system')
34
      ->fields(array('weight' => 15))
35
      ->condition('name', 'advanced_forum')
36
      ->execute();
37
}
38

    
39
function advanced_forum_update_7200() {
40
  if (variable_get('advanced_forum_forum_disabled') == NULL) {
41
    variable_set('advanced_forum_forum_disabled', FALSE);
42
  }
43
}