Closed (fixed)
Project:
Invite
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jan 2012 at 20:53 UTC
Updated:
24 Jun 2012 at 11:42 UTC
Jump to comment: Most recent file
Comments
Comment #1
goron commentedComment #2
glekli commentedGood catch, thanks.
If I may make an observation, invite_comment_post_forbidden() in the patch is an almost exact copy from comment module. It would be redundant to have the same thing in two places, and, furthermore, if the theme function in comment module gets an update, this module would make that ineffective. Do you think hook_link_alter can be used instead to hide the register link?
Comment #3
goron commentedGood idea. I didn't realize actually that this was being outputted in the $links.
While it will mean a bit of extra work (in terms of performance), and a good bit of the code does actually need to be there, I still agree it's cleaner and more maintainable. Also, it leaves it possible for other modules/themes to override that theme function without messing with Invite.
Here's an updated patch. Let me know if this method looks better.
Comment #4
goron commentedoops
Comment #5
glekli commentedLooks good, thank you. Committed.