In usercomment_comment_render() the construction of the link_alter call was incorrect it was calling the function with the parms in the wrong order.
It was this
$function = $module .'_link_alter';
$function($node, $links);
But, it should be
$function = $module .'_link_alter';
$function($links, $node);
I'll work on creating a proper patch for this.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | usercomment-alter-links-D6.patch | 502 bytes | dave reid |
| #4 | usercomment_linkalter.patch | 554 bytes | chuckdeal97 |
| #1 | usercomment_linkalter.patch | 443 bytes | chuckdeal97 |
Comments
Comment #1
chuckdeal97 commentedHere is the patch. It is designed to be run from the usercomment module directory.
Comment #2
dave reidIt's actually preferred to use:
instead of:
Comment #3
chuckdeal97 commentedAlright, thanks. When I get a minute, I'll give that a shot. I'm not the original author and I am just trying to get the module working up to snuff.
Comment #4
chuckdeal97 commentedOk, how about this then... uses drupal_alter
Comment #5
dave reidHere's the patch for the current DRUPAL-6--1 branch (with the correct offset).
Comment #6
dave reidAny progress on this bugfix?
Comment #7
chuckdeal97 commentedI have applied this fix to my code and it fixes the problem. I was hoping that someone other than me has applied and verified the solution.
I'm not the maintainer, and I don't know what the procedure for creating a new project release is, but there are a number of D6 patches that should be applied to this project, in addition to this one.
Comment #8
dave reidYeah, looks like the maintainer is not active at all. The only code update in 2008 was one update in September.
Comment #9
gwen commentedThe code should be fixed in the latest dev snapshot.
Comment #10
dave reidThanks very much gwen!