summaryrefslogtreecommitdiff
path: root/modules/poll.module
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-05-22 23:28:48 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-05-22 23:28:48 +0000
commit5f6d733b70cdc374053e1e415d225008e04bbef4 (patch)
treed220871eb4032ce56a15e745d94eb6fa62a081e5 /modules/poll.module
parentd62d65ae7ec31ea8e4e3435f06015673e45e9e2b (diff)
downloadbrdo-5f6d733b70cdc374053e1e415d225008e04bbef4.tar.gz
brdo-5f6d733b70cdc374053e1e415d225008e04bbef4.tar.bz2
- node security fixes.
- fixing the UI to represent what actually happens when you are an admin.
Diffstat (limited to 'modules/poll.module')
-rw-r--r--modules/poll.module6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/poll.module b/modules/poll.module
index 68b54eb58..2bfdd7d0d 100644
--- a/modules/poll.module
+++ b/modules/poll.module
@@ -40,6 +40,12 @@ function poll_delete($node) {
}
function poll_form(&$node, &$help, &$error) {
+ if (!$node->status) {
+ $node->status = 1;
+ $node->moderate = 1;
+ $node->comment = 2;
+ }
+
$admin = user_access("administer nodes");
$_duration = array(0 => t("Unlimited"), 86400 => format_interval(86400), 172800 => format_interval(172800), 345600 => format_interval(345600), 604800 => format_interval(604800), 1209600 => format_interval(1209600), 2419200 => format_interval(2419200), 4838400 => format_interval(4838400), 9676800 => format_interval(9676800), 31536000 => format_interval(31536000));