summaryrefslogtreecommitdiff
path: root/modules/poll
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2003-12-30 14:02:36 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2003-12-30 14:02:36 +0000
commit51208885de9337d5b40501c9d3e99f929f8332ab (patch)
tree9a1f12e5a625b45e21742b3535c336e520eaed94 /modules/poll
parente8c7d2e092028448aa244afd6b41ebd7452d2d6a (diff)
downloadbrdo-51208885de9337d5b40501c9d3e99f929f8332ab.tar.gz
brdo-51208885de9337d5b40501c9d3e99f929f8332ab.tar.bz2
General filtering improvements
- Re-added STYLE/ON*= filtering (this got lost a while ago due to reorganisation) - Added form_group's to node.module's filter options - Fixed incorrect filter usage in poll.module
Diffstat (limited to 'modules/poll')
-rw-r--r--modules/poll/poll.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index 6e8d16501..8f1710223 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -286,7 +286,7 @@ function poll_view_voting(&$node, $main, $block, $links) {
if ($node->choice) {
foreach ($node->choice as $key => $value) {
if ($value != "") {
- $output .= "<div><input type=\"radio\" name=\"pollvote[$node->nid]\" value=\"$key\" />". filter($value) ."</div>";
+ $output .= "<div><input type=\"radio\" name=\"pollvote[$node->nid]\" value=\"$key\" />". check_output($value) ."</div>";
}
}
}
@@ -317,7 +317,7 @@ function poll_view_results(&$node, $main, $block, $links) {
if ($value != "") {
$width = round($node->chvotes[$key] * 100 / max($votestotal, 1));
$percentage = round($node->chvotes[$key] * 100 / max($votestotal, 1));
- $output .= "<div class=\"text\">". filter($value) ."</div>";
+ $output .= "<div class=\"text\">". check_output($value) ."</div>";
$output .= "<div class=\"bar\">";
$output .= "<div style=\"width: ". $width ."%;\" class=\"foreground\"></div>";
$output .= "<div style=\"width: ". (100 - $width) ."%;\" class=\"background\"></div>";