Skip to content
Snippets Groups Projects
Commit 3692eb3d authored by catch's avatar catch
Browse files

Issue #1315616 by amateescu: Follow up for adding a definition list for the poll results.

parent 9f205a97
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -826,8 +826,8 @@ function poll_view_results($node, $view_mode, $block = FALSE) {
$poll_results[] = array(
'#theme' => 'meter',
'#prefix' => '<dt class="choice-title">' . check_plain($choice['chtext']) . '</dt>' . PHP_EOL . '<dd class="choice-result">',
'#suffix' => '</dd>' . PHP_EOL,
'#prefix' => '<dt class="choice-title">' . check_plain($choice['chtext']) . "</dt>\n" . '<dd class="choice-result">',
'#suffix' => "</dd>\n",
'#display_value' => t('!percentage%', array('!percentage' => $percentage)) . $display_votes,
'#min' => 0,
'#max' => $total_votes,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment