The hook_link() should have the following parameter names:
hook_link($type, $object, $teaser = FALSE)
See http://api.drupal.org/api/function/hook_link/6
Here's a patch that fixes the parameter $object and all its instances:
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | vote_up_down.hook_link_1.patch | 1.86 KB | Anonymous (not verified) |
| #2 | vote_up_down.hook_link_0.patch | 3.24 KB | Anonymous (not verified) |
| vote_up_down.hook_link.patch | 3.28 KB | Anonymous (not verified) |
Comments
Comment #1
lyricnz commentedIn the body of the method, in "case 'node'" this patch changes $node_type to $object_type - this is incorrect. It should stay $node_type (since we know this is a node by then).
Perhaps a cleaner way to do this, is to do something like:
Or even:
Comment #2
Anonymous (not verified) commentedHeres the updated patch.
Comment #3
Anonymous (not verified) commentedNOTE: The last patch was confusing.
Comment #4
lyricnz commentedYes, I like this patch now - nice and simple.
Comment #5
lut4rp commentedFixed. Thanks!