Révision 4eeb3b46
Ajouté par Assos Assos il y a presque 8 ans
drupal7/sites/all/modules/uuid/uuid.api.php | ||
---|---|---|
18 | 18 |
} |
19 | 19 |
|
20 | 20 |
/** |
21 |
* Let modules transform their properties with local IDs to UUIDs when an |
|
22 |
* entity is loaded. |
|
21 |
* Transform entity properties from local IDs to UUIDs when they are loaded. |
|
23 | 22 |
*/ |
24 | 23 |
function hook_entity_uuid_load(&$entities, $entity_type) { |
25 | 24 |
|
26 | 25 |
} |
27 | 26 |
|
28 | 27 |
/** |
29 |
* Let modules transform their fields with local IDs to UUIDs when an entity |
|
30 |
* is loaded. |
|
28 |
* Transform field values from local IDs to UUIDs when an entity is loaded. |
|
31 | 29 |
*/ |
32 | 30 |
function hook_field_uuid_load($entity_type, $entity, $field, $instance, $langcode, &$items) { |
33 | 31 |
|
34 | 32 |
} |
35 | 33 |
|
36 | 34 |
/** |
37 |
* Let modules transform their properties with UUIDs to local IDs when an |
|
38 |
* entity is saved. |
|
35 |
* Transform entity properties from UUIDs to local IDs before entity is saved. |
|
39 | 36 |
*/ |
40 | 37 |
function hook_entity_uuid_presave(&$entity, $entity_type) { |
41 | 38 |
|
42 | 39 |
} |
43 | 40 |
|
44 | 41 |
/** |
45 |
* Let modules transform their fields with UUIDs to local IDs when an entity |
|
46 |
* is saved. |
|
42 |
* Transform field values from UUIDs to local IDs before an entity is saved. |
|
47 | 43 |
*/ |
48 | 44 |
function hook_field_uuid_presave($entity_type, $entity, $field, $instance, $langcode, &$items) { |
49 | 45 |
|
50 | 46 |
} |
51 | 47 |
|
52 | 48 |
/** |
53 |
* Let modules transform their properties when an entity is saved.
|
|
49 |
* Transform entity properties after an entity is saved.
|
|
54 | 50 |
*/ |
55 | 51 |
function hook_entity_uuid_save($entity, $entity_type) { |
56 | 52 |
|
... | ... | |
58 | 54 |
|
59 | 55 |
/** |
60 | 56 |
* Let modules act when an entity is deleted. |
57 |
* |
|
58 |
* Generally hook_entity_delete() should be used instead of this hook. |
|
59 |
* |
|
60 |
* @see hook_entity_delete() |
|
61 | 61 |
*/ |
62 | 62 |
function hook_entity_uuid_delete($entity, $entity_type) { |
63 | 63 |
|
64 | 64 |
} |
65 | 65 |
|
66 | 66 |
/** |
67 |
* Let modules modify paths when they are being converted to UUID ones.
|
|
67 |
* Modifies paths when they are being converted to UUID ones.
|
|
68 | 68 |
*/ |
69 | 69 |
function hook_uuid_menu_path_to_uri_alter($path, &$uri) { |
70 | 70 |
|
71 | 71 |
} |
72 | 72 |
|
73 | 73 |
/** |
74 |
* Let modules modify paths when they are being converted from UUID ones.
|
|
74 |
* Modifies paths when they are being converted from UUID ones.
|
|
75 | 75 |
*/ |
76 | 76 |
function hook_uuid_menu_uri_to_path(&$path, $uri) { |
77 | 77 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules