Révision 4eeb3b46
Ajouté par Assos Assos il y a presque 8 ans
drupal7/sites/all/modules/uuid/uuid.features.inc | ||
---|---|---|
84 | 84 |
} |
85 | 85 |
// We unset some common timestamp properties, since those will change and |
86 | 86 |
// constantly leave the feature overidden. |
87 |
$keys = array('created', 'updated', 'changed', 'revision_timestamp', 'timestamp', 'stamp', 'current'); |
|
87 |
$keys = array( |
|
88 |
'created', |
|
89 |
'updated', |
|
90 |
'changed', |
|
91 |
'revision_timestamp', |
|
92 |
'timestamp', |
|
93 |
'stamp', |
|
94 |
'current', |
|
95 |
); |
|
88 | 96 |
foreach ($keys as $key) { |
89 | 97 |
if (isset($entity->{$key})) { |
90 | 98 |
unset($entity->{$key}); |
... | ... | |
121 | 129 |
} |
122 | 130 |
uuid_entities_features_clean($entity); |
123 | 131 |
|
124 |
// Convert entities to array to avoid having them in JSON, returned from standard implementation of $entity->export(). |
|
132 |
/* |
|
133 |
* Convert entities to array to avoid having them in JSON, returned |
|
134 |
* from standard implementation of $entity->export(). |
|
135 |
*/ |
|
125 | 136 |
if (is_object($entity) && method_exists($entity, 'export')) { |
126 | 137 |
$entity = get_object_vars($entity); |
127 | 138 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules