Chris@0: /** Chris@0: * Implements hook_update_dependencies(). Chris@0: */ Chris@0: function {{ machine_name }}_update_dependencies() { Chris@0: // Indicate that the mymodule_update_8001() function provided by this module Chris@0: // must run after the another_module_update_8003() function provided by the Chris@0: // 'another_module' module. Chris@0: $dependencies['mymodule'][8001] = [ Chris@0: 'another_module' => 8003, Chris@0: ]; Chris@0: // Indicate that the mymodule_update_8002() function provided by this module Chris@0: // must run before the yet_another_module_update_8005() function provided by Chris@0: // the 'yet_another_module' module. (Note that declaring dependencies in this Chris@0: // direction should be done only in rare situations, since it can lead to the Chris@0: // following problem: If a site has already run the yet_another_module Chris@0: // module's database updates before it updates its codebase to pick up the Chris@0: // newest mymodule code, then the dependency declared here will be ignored.) Chris@0: $dependencies['yet_another_module'][8005] = [ Chris@0: 'mymodule' => 8002, Chris@0: ]; Chris@0: return $dependencies; Chris@0: }