[development] [Fwd: Polls redirecting to view page instead of node page]

Lee Rowlands contact at rowlandsgroup.com
Mon Aug 2 23:31:51 UTC 2010


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 at arbel-designs.com>
> Reply-to: development at drupal.org
> To: development at 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
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20100803/72671cc2/attachment.html 


More information about the development mailing list