This patch allows to setup a filter/argument which returns just the nodes where the current user created OR created a revision.

This is for example needed for wiki-like pages where the interests of the user should be displayed.

I'm wondering whether


+class views_handler_filter_node_uid_revision extends views_handler_argument_comment_user_uid {

is good. Perhaps some of this code has to move in another handler.

CommentFileSizeAuthor
#1 989318-filter-revision_author.patch3.19 KBdawehner

Comments

dawehner’s picture

StatusFileSize
new3.19 KB
dawehner’s picture

Title: Filter/argument to show nodes where a certain user is author/created a revision » Filter/argument to show nodes that a certain user is author/created a revision
merlinofchaos’s picture

Could I get someone on the bug squad to do some testing?

merlinofchaos’s picture

Assigned: Unassigned » bojanz
Letharion’s picture

Status: Needs review » Reviewed & tested by the community

Applied patch, cleared cache.
Created 3 nodes as user 1, 1 node as user 3.
Listed nids, added new filter, exposed it.

Tried all combinations of user 1 and 3 with "Is one of, is not one of".

Filter behaves as expected.

Letharion’s picture

Assigned: bojanz » merlinofchaos
merlinofchaos’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

Committed to 6.x-3.x -- needs a little work for 7.x

dawehner’s picture

Status: Patch (to be ported) » Fixed

Ported and commited a patch to d7.

Status: Fixed » Closed (fixed)

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