From 10f808b37ba4567a696eeabb8b5cde79b7c9c8f8 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Sun, 9 Jun 2002 08:30:11 +0000 Subject: [PATCH] - Updated the poll documentation. Patch by Scott. --- modules/poll.module | 9 ++++----- modules/poll/poll.module | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/modules/poll.module b/modules/poll.module index b355df0135a2..5934d99f0f5b 100644 --- a/modules/poll.module +++ b/modules/poll.module @@ -105,7 +105,7 @@ function poll_form(&$node, &$help, &$error) { for ($c = 2; $c <= 20; $c++) { $opts[$c] = $c; } - $output .= form_select(t("Number of choices"), "choices", $node->choices, $opts, t("This item only specifies the number of boxes in this form, but it doesn't have to equal the actual amount of options: you can leave the extra boxes empty.")); + $output .= form_select(t("Number of choices"), "choices", $node->choices, $opts, t("This item sets the number of multiple choice options in the poll, but it doesn't have to equal the actual amount of options; you can leave the extra boxes empty.")); $output .= form_submit(t("Preview")) ."<br /><br /><br />"; for ($a = 0; $a < $node->choices; $a++) { @@ -119,13 +119,13 @@ function poll_form(&$node, &$help, &$error) { $output .= form_select(t("Poll status"), "active", isset($node->active) ? $node->active : 1, $_active); } - $output .= form_select(t("Poll duration"), "runtime", $node->runtime ? $node->runtime : 0, $_duration, t("After this period, the poll will automatically be closed.")); + $output .= form_select(t("Poll duration"), "runtime", $node->runtime ? $node->runtime : 0, $_duration, t("After this period, the poll will be closed automatically.")); return $output; } function poll_help() { - ?><p>Drupal's poll module allows users to submit multiple-choice questions that others can vote on.</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 } @@ -209,7 +209,6 @@ function poll_load($node) { function poll_node($field) { $info["name"] = t("poll"); $info["description"] = t("A poll is a multiple-choice question which visitors can vote on."); - return $info[$field]; } @@ -253,7 +252,7 @@ function poll_save($op, $node) { } function poll_system($field){ - $system["description"] = t("Allows users to submit multiple choice questions for voting."); + $system["description"] = t("Enables your site to capture votes on different topics in the form of multiple choice questions."); return $system[$field]; } diff --git a/modules/poll/poll.module b/modules/poll/poll.module index b355df0135a2..5934d99f0f5b 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -105,7 +105,7 @@ function poll_form(&$node, &$help, &$error) { for ($c = 2; $c <= 20; $c++) { $opts[$c] = $c; } - $output .= form_select(t("Number of choices"), "choices", $node->choices, $opts, t("This item only specifies the number of boxes in this form, but it doesn't have to equal the actual amount of options: you can leave the extra boxes empty.")); + $output .= form_select(t("Number of choices"), "choices", $node->choices, $opts, t("This item sets the number of multiple choice options in the poll, but it doesn't have to equal the actual amount of options; you can leave the extra boxes empty.")); $output .= form_submit(t("Preview")) ."<br /><br /><br />"; for ($a = 0; $a < $node->choices; $a++) { @@ -119,13 +119,13 @@ function poll_form(&$node, &$help, &$error) { $output .= form_select(t("Poll status"), "active", isset($node->active) ? $node->active : 1, $_active); } - $output .= form_select(t("Poll duration"), "runtime", $node->runtime ? $node->runtime : 0, $_duration, t("After this period, the poll will automatically be closed.")); + $output .= form_select(t("Poll duration"), "runtime", $node->runtime ? $node->runtime : 0, $_duration, t("After this period, the poll will be closed automatically.")); return $output; } function poll_help() { - ?><p>Drupal's poll module allows users to submit multiple-choice questions that others can vote on.</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 } @@ -209,7 +209,6 @@ function poll_load($node) { function poll_node($field) { $info["name"] = t("poll"); $info["description"] = t("A poll is a multiple-choice question which visitors can vote on."); - return $info[$field]; } @@ -253,7 +252,7 @@ function poll_save($op, $node) { } function poll_system($field){ - $system["description"] = t("Allows users to submit multiple choice questions for voting."); + $system["description"] = t("Enables your site to capture votes on different topics in the form of multiple choice questions."); return $system[$field]; } -- GitLab