You are here

function update_test_2_update_dependencies in Drupal 7

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/update_test_2/update_test_2.install \update_test_2_update_dependencies()
  2. 9 core/modules/system/tests/modules/update_test_2/update_test_2.install \update_test_2_update_dependencies()

Implements hook_update_dependencies().

See also

update_test_1_update_dependencies()

update_test_3_update_dependencies()

File

modules/simpletest/tests/update_test_2.install, line 14
Install, update and uninstall functions for the update_test_2 module.

Code

function update_test_2_update_dependencies() {

  // Combined with update_test_3_update_dependencies(), we are declaring here
  // that these two modules run updates in the following order:
  // 1. update_test_2_update_7000()
  // 2. update_test_3_update_7000()
  // 3. update_test_2_update_7001()
  // 4. update_test_2_update_7002()
  $dependencies['update_test_2'][7001] = array(
    'update_test_3' => 7000,
  );

  // These are coordinated with the corresponding dependencies declared in
  // update_test_1_update_dependencies().
  $dependencies['system'][7000] = array(
    'update_test_2' => 7001,
  );
  $dependencies['system'][7001] = array(
    'update_test_1' => 7001,
  );
  return $dependencies;
}