I was looking for a way to set the timelimit a poll, using this hack should run. Forgive me if I missed it in previous posts. I've come up with a way to do this for each form hack that is running. All of the below changes are accomplished in the hook.
after
add
Code:
//Time in days after posting poll shall close
$polltimeout = 10;
Where 10 is the number of days you choose to end the poll
after
Code:
$poll->set('public', $pollpublic);
add
Code:
$poll->set('timeout', $polltimeout);
If you have a
Default Poll Timeout set on all created polls, the above changes will overide that setting.
I really hope I didn't recreate what already had been figured out.