summaryrefslogtreecommitdiff
path: root/modules/poll.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2002-10-22 18:46:43 +0000
committerDries Buytaert <dries@buytaert.net>2002-10-22 18:46:43 +0000
commit66c5b70736553b2c84eb8835e7b4c3ad7c34c8f8 (patch)
tree605fc52b5bd8fa8e2411dee975e34c2e83276595 /modules/poll.module
parent88d6ef3a2ad99a0872b00f40e84c083b098ad21c (diff)
downloadbrdo-66c5b70736553b2c84eb8835e7b4c3ad7c34c8f8.tar.gz
brdo-66c5b70736553b2c84eb8835e7b4c3ad7c34c8f8.tar.bz2
- Wrapped some hardcoded colors in "theme_invoke()"s; we can still create
a drupal_error() later on but I think we better get used to theme_invoke(). - Fixed translation bug. Patch by Moshe. - Fixed PHP warning. Patch by ax.
Diffstat (limited to 'modules/poll.module')
-rw-r--r--modules/poll.module7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/poll.module b/modules/poll.module
index f6dca48df..7c22e041c 100644
--- a/modules/poll.module
+++ b/modules/poll.module
@@ -86,12 +86,12 @@ function poll_form(&$node, &$help, &$error) {
}
if ($node->chvotes[$i] < 0) {
- $error["chvotes][$i"] = "<span style=\"color: red;\">". t("Negative values are not allowed.") ."</span>";
+ $error["chvotes][$i"] = theme_invoke("theme_error", t("Negative values are not allowed."));
}
}
if ($actualchoices < 2) {
- $error["choice][0"] = "<span style=\"color: red;\">". t("You must fill in at least two choices.") ."</span>";
+ $error["choice][0"] = theme_invoke("theme_error", t("You must fill in at least two choices."));
}
}
else {
@@ -125,7 +125,8 @@ function poll_form(&$node, &$help, &$error) {
}
function poll_help() {
- ?><p>Drupal's poll module allows users with at least content posting privileges to submit multiple-choice questions that others can vote on. Any user with sufficient privileges can vote. Please note that this is fully controlled by Drupal's access control features. For example, users might be required to login before voting (or even seeing the page where the voting occurs) or it could be open to the world.</p>
+ ?>
+ <p>Drupal's poll module allows users with at least content posting privileges to submit multiple-choice questions that others can vote on. Any user with sufficient privileges can vote. Please note that this is fully controlled by Drupal's access control features. For example, users might be required to login before voting (or even seeing the page where the voting occurs) or it could be open to the world.</p>
<?php
}