I’m not really sure how to do this, I've looked into the poll.module and the redirect there is set to FLASE, also It looks like there is some sort of logic after the form is submited, and I don't really know how to get the NID so I can redirect to the page.
Idan
From: development-bounces@drupal.org [mailto:development-bounces@drupal.org] On Behalf Of Lee Rowlands
Sent: Tuesday, August 03, 2010 2:32 AM
To: development@drupal.org
Subject: [development] [Fwd: Polls redirecting to view page instead of node page]
Hi Idan
You need an implementation of hook_form_alter for the poll form's form_id that adds a #redirect property.
http://api.drupal.org/api/drupal/developer--topics--forms_api_reference.html/6#redirect
You may need to compete with views on this property (especially if the view has an exposed form) so your module might need a lower system weight than views
Lee
-------- Forwarded Message --------
From: Idan Arbel <idan@arbel-designs.com>
Reply-to: development@drupal.org
To: development@drupal.org
Subject: [development] Polls redirecting to view page instead of node page
Date: Tue, 3 Aug 2010 01:53:58 +0300
Hello,
I have a view with a bunch of poles being displayed (using the poll module).
The problem is that after submiting a poll (via the views page) the page refreshes and stays on the view page. Any way to get the poll to redirect to the poll node page once the user votes on a poll?
Thanks
Idan