summaryrefslogtreecommitdiff
path: root/modules/poll/poll.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-05-20 13:51:40 +0000
committerDries Buytaert <dries@buytaert.net>2001-05-20 13:51:40 +0000
commit20397ad3d9dad39670ed92923d2513bd89c7b0bb (patch)
tree1e16b41f8312007e0f0805c6db7c94813f5c05fb /modules/poll/poll.module
parent3fbd49d786e57ebde5736793a5050cda8796205d (diff)
downloadbrdo-20397ad3d9dad39670ed92923d2513bd89c7b0bb.tar.gz
brdo-20397ad3d9dad39670ed92923d2513bd89c7b0bb.tar.bz2
CHANGES
- Redid settings.module and even renamed it to conf.module. * Settings are now grouped in basic categories like "system settings", "module settings" and "filters". * Added new settings to make Drupal easier to configure and to make some aspects like the watchdog scale better. - Renamed includes/settings.php to includes/conf.php. - Added filter support to conf.module and introduced filter hooks so modules can implement and export new filters. Example filters are an HTML filter (implemented), a profanity filter, an url converter, ASCII smileys to images filter and so on ... - Reworked the check_* functions: user contributed content/input is only verified and filtered once in its lifespan. NOTES - Altough this is a large commit, no database changes are required.
Diffstat (limited to 'modules/poll/poll.module')
-rw-r--r--modules/poll/poll.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index c79723b09..06661ba51 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -152,7 +152,7 @@ function poll_view($node, $main = 0, $block = 0) {
}
function poll_form($edit = array(), $nocheck = 0) {
- global $allowed_html, $REQUEST_URI, $user;
+ global $REQUEST_URI, $user;
$duration = array(0 => t("Unlimited"), 86400 => t("1 day"), 172800 => t("2 days"), 345600 => t("4 days"),
604800 => t("1 week"), 1209600 => t("2 weeks"), 2678400 => t("1 month"), 5356800 => t("2 months"),
@@ -281,7 +281,7 @@ function poll_admin() {
case t("Refresh"):
$refresh = 1;
case t("Preview"):
- poll_view(new Poll($edit));
+ poll_view(new Poll(node_preview($edit)));
case "add":
print poll_form($edit, $refresh);
break;
@@ -301,7 +301,7 @@ function poll_user() {
case t("Refresh"):
$refresh = 1;
case t("Preview"):
- poll_view(new Poll($edit));
+ poll_view(new Poll(node_preview($edit)));
$theme->box(t("Submit"), poll_form($edit, $refresh));
break;
case t("Submit"):