Projet

Général

Profil

Paste
Télécharger (1,18 ko) Statistiques
| Branche: | Révision:

root / drupal7 / modules / simpletest / tests / update_test_2.install @ 76597ebf

1
<?php
2

    
3
/**
4
 * @file
5
 * Install, update and uninstall functions for the update_test_2 module.
6
 */
7

    
8
/**
9
 * Implements hook_update_dependencies().
10
 *
11
 * @see update_test_1_update_dependencies()
12
 * @see update_test_3_update_dependencies()
13
 */
14
function update_test_2_update_dependencies() {
15
  // Combined with update_test_3_update_dependencies(), we are declaring here
16
  // that these two modules run updates in the following order:
17
  // 1. update_test_2_update_7000()
18
  // 2. update_test_3_update_7000()
19
  // 3. update_test_2_update_7001()
20
  // 4. update_test_2_update_7002()
21
  $dependencies['update_test_2'][7001] = array(
22
    'update_test_3' => 7000,
23
  );
24

    
25
  // These are coordinated with the corresponding dependencies declared in
26
  // update_test_1_update_dependencies().
27
  $dependencies['system'][7000] = array(
28
    'update_test_2' => 7001,
29
  );
30
  $dependencies['system'][7001] = array(
31
    'update_test_1' => 7001,
32
  );
33

    
34
  return $dependencies;
35
}
36

    
37
/**
38
 * Dummy update_test_2 update 7000.
39
 */
40
function update_test_2_update_7000() {
41
}
42

    
43
/**
44
 * Dummy update_test_2 update 7001.
45
 */
46
function update_test_2_update_7001() {
47
}
48

    
49
/**
50
 * Dummy update_test_2 update 7002.
51
 */
52
function update_test_2_update_7002() {
53
}