This is a backport of #1275902: Allow URI callbacks to return FALSE for Drupal 7.14. As mentioned in #1392654: Commerce can return invalid return values for URI callbacks there are many cases where Commerce URI callbacks return FALSE or NULL if there is no meaningful URI. Changing entity_uri() to allow for this seems like the best solution.

Comments

svillee’s picture

Attached is the patch for Drupal 7.14 corresponding to the other patch for D8.

svillee’s picture

Status: Active » Needs review

changing status to "needs review"

mr.baileys’s picture

Status: Needs review » Closed (duplicate)

There is no need to split this off from #1275902: Allow entity URI callbacks to indicate that the entity has no URI, and make the User module use that for anonymous users. Fixes are always applied against HEAD (8.x), and optionally back-ported. In this case, since we are talking about an API change, I don't think this has much chance of getting back-ported though.