Closed (fixed)
Project:
Decisions
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
12 Apr 2010 at 19:18 UTC
Updated:
13 Apr 2010 at 14:53 UTC
Currently if you want to know if voting is open on a node, you have to check $node->active and then check $node->runtime != DECISIONS_RUNTIME_INFINITY && $time >= $node->startdate + $node->runtime. Yikes.
Let's create an API function that does this for us.
Comments
Comment #1
ezra-g commentedThis is now committed: http://drupalcode.org/viewvc/drupal/contributions/modules/decisions/deci...
Comment #2
ezra-g commentedI reverted most of this since we already had a function for it. We're at least using it now in decisions_view ;).