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