I need to store the lid after creating a location.

location_save_locations(&$locations, $criteria) doesn't return anything right now about the status of the operation, or the new values (like lid).

I suggest that we change the API so that location_save_locations returns the $location array at least, maybe even consider addtional info about the success or failure of that operation.

What do you think?

Comments

frankcarey’s picture

looks like location_save() returns the lid or false if there there was a deletion.

ankur’s picture

Status: Active » Closed (works as designed)