Commit 90b3e88e authored by Dries's avatar Dries

- Patch #38476 by crunchywelch: make voting on polls work from blocks in the sidebar.

parent dba3e800
......@@ -317,6 +317,7 @@ function poll_view_voting(&$node, $teaser, $page, $block) {
}
$form['nid'] = array('#type' => 'hidden', '#value' => $node->nid);
$form['vote'] = array('#type' => 'submit', '#value' => t('Vote'));
$form['#action'] = 'node/'. $node->nid;
return drupal_get_form('poll_view_voting', $form);
}
......
......@@ -317,6 +317,7 @@ function poll_view_voting(&$node, $teaser, $page, $block) {
}
$form['nid'] = array('#type' => 'hidden', '#value' => $node->nid);
$form['vote'] = array('#type' => 'submit', '#value' => t('Vote'));
$form['#action'] = 'node/'. $node->nid;
return drupal_get_form('poll_view_voting', $form);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment