Projet

Général

Profil

Révision 13c3c9b4

Ajouté par Assos Assos il y a environ 9 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/advanced_forum/advanced_forum.install
4 4
 * @file
5 5
 * Installation code for Advanced Forum.
6 6
 */
7

  
8
/**
9
 * Implements hook_install().
10
 */
7 11
function advanced_forum_install() {
8 12
  db_update('system')
9 13
      ->fields(array('weight' => 15))
......
11 15
      ->execute();
12 16
}
13 17

  
18
/**
19
 * Implements hook_uninstall().
20
 */
14 21
function advanced_forum_uninstall() {
15 22
  db_delete('variable')
16 23
      ->condition('name', "advanced_forum_%", "LIKE")
......
18 25
  cache_clear_all('variables', 'cache_bootstrap');
19 26
}
20 27

  
28
/**
29
 * Implements hook_update_N().
30
 */
21 31
function advanced_forum_update_5000() {
22 32
  db_update('system')
23 33
      ->fields(array('weight' => 10))
......
25 35
      ->execute();
26 36
}
27 37

  
38
/**
39
 * Implements hook_update_N().
40
 */
28 41
function advanced_forum_update_5003() {
29 42
  db_drop_table('advforum_last_post');
30 43
}
31 44

  
45
/**
46
 * Implements hook_update_N().
47
 */
32 48
function advanced_forum_update_5005() {
33 49
  db_update('system')
34 50
      ->fields(array('weight' => 15))
......
36 52
      ->execute();
37 53
}
38 54

  
55
/**
56
 * Implements hook_update_N().
57
 */
39 58
function advanced_forum_update_7200() {
40 59
  if (variable_get('advanced_forum_forum_disabled') == NULL) {
41 60
    variable_set('advanced_forum_forum_disabled', FALSE);
42 61
  }
43
}
62
}

Formats disponibles : Unified diff