update_test_2.install 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /**
  3. * @file
  4. * Install, update and uninstall functions for the update_test_2 module.
  5. */
  6. /**
  7. * Implements hook_update_dependencies().
  8. *
  9. * @see update_test_1_update_dependencies()
  10. * @see update_test_3_update_dependencies()
  11. */
  12. function update_test_2_update_dependencies() {
  13. // Combined with update_test_3_update_dependencies(), we are declaring here
  14. // that these two modules run updates in the following order:
  15. // 1. update_test_2_update_7000()
  16. // 2. update_test_3_update_7000()
  17. // 3. update_test_2_update_7001()
  18. // 4. update_test_2_update_7002()
  19. $dependencies['update_test_2'][7001] = array(
  20. 'update_test_3' => 7000,
  21. );
  22. // These are coordinated with the corresponding dependencies declared in
  23. // update_test_1_update_dependencies().
  24. $dependencies['system'][7000] = array(
  25. 'update_test_2' => 7001,
  26. );
  27. $dependencies['system'][7001] = array(
  28. 'update_test_1' => 7001,
  29. );
  30. return $dependencies;
  31. }
  32. /**
  33. * Dummy update_test_2 update 7000.
  34. */
  35. function update_test_2_update_7000() {
  36. }
  37. /**
  38. * Dummy update_test_2 update 7001.
  39. */
  40. function update_test_2_update_7001() {
  41. }
  42. /**
  43. * Dummy update_test_2 update 7002.
  44. */
  45. function update_test_2_update_7002() {
  46. }