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 }
CommentFileSizeAuthor
#1 uuid-return_result-1859234.patch594 bytescarlhinton

Comments

carlhinton’s picture

StatusFileSize
new594 bytes

Attached patch file

carlhinton’s picture

Status: Active » Needs review
skwashd’s picture

Issue summary: View changes
Status: Needs review » Fixed

Good catch! Thanks for the patch. I have committed it and it will be included in the next release of the UUID module.

  • skwashd committed 5f6ba3b on 7.x-1.x authored by CarlHinton
    Issue #1859234 by CarlHinton: Make entity_uuid_save() return result from...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.