annotate vendor/chi-teck/drupal-code-generator/templates/d7/hook/update_dependencies.twig @ 5:12f9dff5fda9
tip
Update to Drupal core 8.7.1
author |
Chris Cannam |
date |
Thu, 09 May 2019 15:34:47 +0100 |
parents |
c75dbcec494b |
children |
|
rev |
line source |
Chris@0
|
1 /**
|
Chris@0
|
2 * Implements hook_update_dependencies().
|
Chris@0
|
3 */
|
Chris@0
|
4 function {{ machine_name }}_update_dependencies() {
|
Chris@0
|
5 // Indicate that the mymodule_update_7000() function provided by this module
|
Chris@0
|
6 // must run after the another_module_update_7002() function provided by the
|
Chris@0
|
7 // 'another_module' module.
|
Chris@0
|
8 $dependencies['mymodule'][7000] = array(
|
Chris@0
|
9 'another_module' => 7002,
|
Chris@0
|
10 );
|
Chris@0
|
11 // Indicate that the mymodule_update_7001() function provided by this module
|
Chris@0
|
12 // must run before the yet_another_module_update_7004() function provided by
|
Chris@0
|
13 // the 'yet_another_module' module. (Note that declaring dependencies in this
|
Chris@0
|
14 // direction should be done only in rare situations, since it can lead to the
|
Chris@0
|
15 // following problem: If a site has already run the yet_another_module
|
Chris@0
|
16 // module's database updates before it updates its codebase to pick up the
|
Chris@0
|
17 // newest mymodule code, then the dependency declared here will be ignored.)
|
Chris@0
|
18 $dependencies['yet_another_module'][7004] = array(
|
Chris@0
|
19 'mymodule' => 7001,
|
Chris@0
|
20 );
|
Chris@0
|
21 return $dependencies;
|
Chris@0
|
22 }
|