Hi there,

On lines 372-373 of the latest drupal 7 dev version (2011-Nov-10) and lines 365-366 stable version (2011-Aug-18), you reference

$object_info['path callback']

I think this needs to be:

$object_info['uri callback']

"path callback" is not mentioned on hook_entity_info (http://api.drupal.org/api/drupal/modules--system--system.api.php/functio...) and the uri callback works well - when using the Email contact form settings for an e-mail field, this callback returns you to the node from which you sent the message, rather than the homepage (which is where you get returned because 'path callback' doesn't exist).

Cheers,
Olly

CommentFileSizeAuthor
#5 1372310-5.patch674 bytesSpadXIII
#1 callback-1372310-1.patch655 bytesMoloc
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Moloc’s picture

Status: Active » Needs review
FileSize
655 bytes

Here is a patch.

boyan.borisov’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Works for me

mh86’s picture

Status: Reviewed & tested by the community » Needs review

The 'path callback' really seems to be wrong. Instead of implementing the uri logic on our own, we should use entity_uri()

mh86’s picture

Status: Needs review » Needs work

sorry, wrong status.

SpadXIII’s picture

Version: 7.x-1.0 » 7.x-1.3
Status: Needs work » Needs review
FileSize
674 bytes

As mentioned in #3, changed to using entity_uri()