I would like to be able to view the results of poll in a node that is not of type advpoll. More specifically, I create a node of type advpoll, and once voting is done, the node may or may not be turned into a product node (ala ubercart). The node needs to retain all of the comments, images and most importantly, the results of the vote. I can currently accomplish this with just a couple of lines of code:
$poll = advpoll_load($node);
$res = advpoll_view_results_binary($poll,$teaser,$page);
$node->content['body']['#value'] .= ( '<div class="poll">' . $res['results'] . '</div>');
but it would be nice to see this handled a little more formally as I'm not really sure all of the side effects of advpoll_load and advpoll_view_results_binary are necessary.
Comments
Comment #1
pomliane commentedThis version of Advanced Poll is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.
This issue has been automagically closed by a script.