As the title says, should the Signatures for Forums module expose signatures to Views, and would this be per-nid, per-uid or both?

Comments

merlinofchaos’s picture

Yes and per-uid (which is automatically per-nid in Views).

liam mcdermott’s picture

Assigned: Unassigned » liam mcdermott

Thanks for the answer Earl, I'll try adding Views integration either tomorrow or over the weekend. Then would you mind doing a quick code review? It would be helpful and just in case I have completely mis-interpreted the Views API. ;)

merlinofchaos’s picture

Did you make any progress on this? I'd love to have some code to review here =)

liam mcdermott’s picture

I was wondering whether this would be required, and then forgot about it. :)

Attached is a patch, which is named after webchick following a conversation on IRC. It provides three ways of getting signatures: 1) straight from the database, by linking {users_signature} to {users}; 2) by using the {node} table and a custom field handler that adds additional fields to the query, required for a call to signature_forum_get_signature() in the field handler's render() function; 3) the same as (2), but with {comments}.

One caveat: signatures are called 'Signatures for Forums signature' as core already has 'User: signature'. I titled all instances of the signature field this way for consistency, even when not strictly necessary. If anyone can think of anything better, go ahead!

michelle’s picture

How about "Extended signature"? Not opposed to the module name... Just offering a shorter and perhaps clearer alternate.

Michelle

avpaderno’s picture

Version: » 6.x-1.x-dev
Assigned: liam mcdermott » Unassigned
Issue summary: View changes
Status: Active » Closed (outdated)

I am closing this issue, as Drupal 4.7, 5, and 6 are now not supported.