We need to disable further comments when an author leaves the company since there will no longer be any answers from that person.

A simple hook_user('after update') can take care of this, but in my case, we'd prefer to check profile variables and return TRUE, if they should disable, or FALSE if they should not. So maybe calling another hook from this function would be nice. Of course that means the ability to OR or AND the results would be needed.

CommentFileSizeAuthor
#1 comment_closer_945138.patch2.96 KBnancydru

Comments

nancydru’s picture

Status: Active » Needs review
StatusFileSize
new2.96 KB

Here's the basic patch. Sorry it is partially mixed up with another patch I submitted. I still want to add the sub-hook idea.

nancydru’s picture

Status: Needs review » Fixed

Committed to 6.x-1.x-dev

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.