Commit 8cd5210f authored by Dries's avatar Dries

- Patch #51561 by dww: fixed broken HTML.

parent 9a65cabf
......@@ -380,14 +380,11 @@ function theme_poll_results($title, $results, $votes, $links, $block, $nid, $vot
$output .= '<div class="poll">';
$output .= $results;
$output .= '<div class="total">'. t('Total votes: %votes', array('%votes' => $votes)) .'</div>';
if (isset($vote) && $vote > -1) {
if (user_access('cancel own vote')) {
$form['#action'] = url("poll/cancel/$nid");
$form['choice'] = array('#type' => 'hidden', '#value' => $vote);
$form['submit'] = array('#type' => 'submit', '#value' => t('Cancel your vote'));
$output .= drupal_get_form('poll_cancel_form', $form);
}
$output .= '</div>';
if (isset($vote) && $vote > -1 && user_access('cancel own vote')) {
$form['#action'] = url("poll/cancel/$nid");
$form['choice'] = array('#type' => 'hidden', '#value' => $vote);
$form['submit'] = array('#type' => 'submit', '#value' => t('Cancel your vote'));
$output .= drupal_get_form('poll_cancel_form', $form);
}
$output .= '</div>';
}
......
......@@ -380,14 +380,11 @@ function theme_poll_results($title, $results, $votes, $links, $block, $nid, $vot
$output .= '<div class="poll">';
$output .= $results;
$output .= '<div class="total">'. t('Total votes: %votes', array('%votes' => $votes)) .'</div>';
if (isset($vote) && $vote > -1) {
if (user_access('cancel own vote')) {
$form['#action'] = url("poll/cancel/$nid");
$form['choice'] = array('#type' => 'hidden', '#value' => $vote);
$form['submit'] = array('#type' => 'submit', '#value' => t('Cancel your vote'));
$output .= drupal_get_form('poll_cancel_form', $form);
}
$output .= '</div>';
if (isset($vote) && $vote > -1 && user_access('cancel own vote')) {
$form['#action'] = url("poll/cancel/$nid");
$form['choice'] = array('#type' => 'hidden', '#value' => $vote);
$form['submit'] = array('#type' => 'submit', '#value' => t('Cancel your vote'));
$output .= drupal_get_form('poll_cancel_form', $form);
}
$output .= '</div>';
}
......
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