Views integration

lomz - August 30, 2008 - 07:16
Project:Advanced Poll
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:patch (to be ported)
Description

I would like to be able to filter polls in views by status, if it is closed or open.

#1

flobruit - January 2, 2009 - 21:24
Status:active» needs review

Here's a patch that adds views integration to the advpoll module. The code is mostly based on the views integration of the VotingAPI, but modified to pick up the data from the advpoll module (which differs slightly from the VotingAPI data, even though it's stored in the same table).

AttachmentSize
advpoll-views.patch 5.86 KB

#2

ChrisKennedy - January 2, 2009 - 23:08

Hey, well done :) To what extent have you tested this with different advpoll settings?

#3

flobruit - January 7, 2009 - 20:40

I only did the "option" value type used by binary polls.

#4

ChrisKennedy - January 25, 2009 - 00:58
Version:5.x-1.x-dev» 6.x-1.x-dev
Status:needs review» patch (to be ported)

Okay I went though this, added a little support for {advpoll} fields so you can filters polls by open/closed status, and committed.

http://drupal.org/cvs?commit=166835

#5

browlands - June 17, 2009 - 12:13

Any plans to make a version 6 commit for rudementary views integration?

#6

Apollo610 - July 9, 2009 - 17:37

Subscribing - would like to see this in views for D6 as well!

 
 

Drupal is a registered trademark of Dries Buytaert.