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

ezra-g’s picture

ezra-g’s picture

Status: Fixed » Closed (fixed)

I reverted most of this since we already had a function for it. We're at least using it now in decisions_view ;).