-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.install
More file actions
40 lines (37 loc) · 1.28 KB
/
Copy pathdeploy.install
File metadata and controls
40 lines (37 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* @file
* Site deployment install functions
*/
/**
* Implements hook_install().
*/
function deploy_install() {
// This module is designed to be enabled on a brand new instance of
// Drupal. Settings its uuid here will tell this instance that it is
// in fact the same site as any other instance. Therefore, all local
// instances, continuous integration, testing, dev, and production
// instances of a codebase will have the same uuid, enabling us to
// sync these instances via the config management system.
// See also https://www.drupal.org/node/2133325
deploy_set_uuid('758e9261-ee4b-4435-8c3e-62ed2947a804');
for ($i = 8001; $i < 9000; $i++) {
$candidate = 'deploy_update_' . $i;
if (function_exists($candidate)) {
$candidate();
}
}
}
/**
* Update dependencies and revert features
*/
function deploy_update_8004() {
// If you add a new dependency during your development:
// (1) add your dependency to your .info file
// (2) increment the number in this function name (example: change
// change 8003 to 8004)
// (3) now, on each target environment, running drush updb -y
// will call the mysite_deploy_update_dependencies() function
// which in turn will enable all new dependencies.
deploy_update_dependencies();
}