function poll_help in Drupal 4
Same name and namespace in other branches
- 5 modules/poll/poll.module \poll_help()
- 6 modules/poll/poll.module \poll_help()
- 7 modules/poll/poll.module \poll_help()
Implementation of hook_help().
File
- modules/
poll.module, line 12 - Enables your site to capture votes on different topics in the form of multiple choice questions.
Code
function poll_help($section) {
switch ($section) {
case 'admin/help#poll':
$output = '<p>' . t('The poll module can be used to create simple polls for site users. A poll is a simple multiple choice questionnaire which displays the cumulative results of the answers to the poll. Having polls on the site is a good way to get instant feedback from community members.') . '</p>';
$output .= '<p>' . t('Users can create a poll. The title of the poll should be the question, then enter the answers and the "base" vote counts. You can also choose the time period over which the vote will run.The <a href="%poll">poll</a> item in the navigation menu will take you to a page where you can see all the current polls, vote on them (if you haven\'t already) and view the results.', array(
'%poll' => url('poll'),
)) . '</p>';
$output .= t('<p>You can</p>
<ul>
<li>view the <a href="%poll">polls page</a>.</li>
<li><a href="%admin-node-configure-types-poll">administer >> settings >> content types >> configure poll</a>.</li>
</ul>
', array(
'%poll' => url('poll'),
'%admin-node-configure-types-poll' => url('admin/settings/content-types/poll'),
));
$output .= '<p>' . t('For more information please read the configuration and customization handbook <a href="%poll">Poll page</a>.', array(
'%poll' => 'http://drupal.org/handbook/modules/poll/',
)) . '</p>';
return $output;
case 'admin/modules#description':
return t("Allows your site to capture votes on different topics in the form of multiple choice questions.");
case 'node/add#poll':
return t("A poll is a multiple-choice question which visitors can vote on.");
}
}