-
Notifications
You must be signed in to change notification settings - Fork 1
/
uuid.api.php
139 lines (105 loc) · 2.85 KB
/
uuid.api.php
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?php
/**
* @file
* Hooks provided by the UUID module.
*/
/**
* Ensures all records have a UUID assigned to them.
*
* When called this hook should ensure all records it is responsible for
* have a UUID and if not create one.
*
* @see entity_uuid_sync()
*/
function hook_uuid_sync() {
// Do what you need to do to generate missing UUIDs for you implementation.
}
/**
* Transform entity properties from local IDs to UUIDs when they are loaded.
*/
function hook_entity_uuid_load(&$entities, $entity_type) {
}
/**
* Transform field values from local IDs to UUIDs when an entity is loaded.
*/
function hook_field_uuid_load($entity_type, $entity, $field, $instance, $langcode, &$items) {
}
/**
* Transform entity properties from UUIDs to local IDs before entity is saved.
*/
function hook_entity_uuid_presave(&$entity, $entity_type) {
}
/**
* Transform field values from UUIDs to local IDs before an entity is saved.
*/
function hook_field_uuid_presave($entity_type, $entity, $field, $instance, $langcode, &$items) {
}
/**
* Transform entity properties after an entity is saved.
*/
function hook_entity_uuid_save($entity, $entity_type) {
}
/**
* Let modules act when an entity is deleted.
*
* Generally hook_entity_delete() should be used instead of this hook.
*
* @see hook_entity_delete()
*/
function hook_entity_uuid_delete($entity, $entity_type) {
}
/**
* Modifies paths when they are being converted to UUID ones.
*/
function hook_uuid_menu_path_to_uri_alter($path, &$uri) {
}
/**
* Modifies paths when they are being converted from UUID ones.
*/
function hook_uuid_menu_uri_to_path(&$path, $uri) {
}
/**
* Allow modules to provide a list of default entities that will be imported.
*/
function hook_uuid_default_entities() {
}
/**
* Let other modules do things before default entities are created on rebuild.
*/
function hook_uuid_entities_pre_rebuild($plan_name) {
}
/**
* Let other modules do things after default entities are created on rebuild.
*/
function hook_uuid_entities_post_rebuild($plan_name) {
}
/**
* Let other modules do things before default entities are created on revert.
*/
function hook_uuid_entities_pre_revert($plan_name) {
}
/**
* Let other modules do things after default entities are created on revert.
*/
function hook_uuid_entities_post_revert($plan_name) {
}
/**
* Let other modules alter entities that are about to be exported.
*/
function hook_uuid_entities_features_export_entity_alter(&$entity, $entity_type) {
}
/**
* Let other modules alter fields on entities that are about to be exported.
*/
function hook_uuid_entities_features_export_field_alter($entity_type, &$entity, $field, $instance, $langcode, &$items) {
}
/**
* Alter UUID URI data after processing.
*/
function hook_uuid_uri_data($data) {
}
/**
* Alter entity URI before creating UUID URI.
*/
function hook_uuid_id_uri_data($data) {
}