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
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 1372310-5.patch | 674 bytes | spadxiii |
Comments
Comment #1
moloc commentedHere is a patch.
Comment #2
boyan.borisov commentedWorks for me
Comment #3
mh86 commentedThe 'path callback' really seems to be wrong. Instead of implementing the uri logic on our own, we should use entity_uri()
Comment #4
mh86 commentedsorry, wrong status.
Comment #5
spadxiii commentedAs mentioned in #3, changed to using entity_uri()