function entity_uuid_save needs to return the TRUE or FALSE of the entity_save function
function entity_uuid_save($entity_type, $entity) {
199 // This function, and this function only, depends on the entity module.
200 if (!module_exists('entity')) {
201 throw new UuidEntityException(t('Calling %function requires the Entity API module (!link).', array('%function' => __FUNCTION__, '!link' => 'http://drupal.org/project/entity')));
202 }
203
204 entity_make_entity_local($entity_type, $entity);
205
206 // Save the entity.
207 entity_save($entity_type, $entity);
208
209 $hook = 'entity_uuid_save';
210 foreach (module_implements($hook) as $module) {
211 $function = $module . '_' . $hook;
212 if (function_exists($function)) {
213 $function($entity, $entity_type);
214 }
215 }
216 }
Comments
Comment #1
carlhinton commentedAttached patch file
Comment #2
carlhinton commentedComment #3
skwashd commentedGood catch! Thanks for the patch. I have committed it and it will be included in the next release of the UUID module.