poll.module

Version 1.323 (checked in on 2009/11/08 at 10:02:41 by webchick)

Enables your site to capture votes on different topics in the form of multiple choice questions.

Functions

NameDescription
poll_block_infoImplement hook_block_info().
poll_block_latest_poll_viewReturn content for 'latest poll' block.
poll_block_viewImplement hook_block_view().
poll_cancelSubmit callback for poll_cancel_form().
poll_cancel_formBuilds the cancel form for a poll.
poll_choice_jsMenu callback for AHAH additions. Render the new poll choices.
poll_cronImplement hook_cron().
poll_deleteImplement hook_delete().
poll_field_extra_fieldsImplement hook_field_extra_fields().
poll_formImplement hook_form().
poll_helpImplement hook_help().
poll_initImplement hook_init().
poll_insertImplement hook_insert().
poll_loadImplement hook_load().
poll_menuImplement hook_menu().
poll_more_choices_submitSubmit handler to add more choices to a poll form. This handler is used when javascript is not available. It makes changes to the form state and the entire form is rebuilt during the page reload.
poll_node_form_submitRenumber fields and create a teaser when a poll node is submitted.
poll_node_infoImplement hook_node_info().
poll_node_prepare_translationImplement hook_node_prepare_translation().
poll_permissionImplement hook_permission().
poll_teaserCreates a simple teaser that lists all the choices.
poll_themeImplement hook_theme().
poll_updateImplement hook_update().
poll_user_cancelImplement hook_user_cancel().
poll_validateImplement hook_validate().
poll_viewImplement hook_view().
poll_view_resultsGenerates a graphical representation of the results of a poll.
poll_view_votingGenerates the voting form for a poll.
poll_view_voting_validateValidation function for processing votes
poll_voteSubmit handler for processing a vote.
template_preprocess_poll_barPreprocess the poll_bar theme hook.
template_preprocess_poll_resultsPreprocess the poll_results theme hook.
template_preprocess_poll_voteThemes the voting form for a poll.
theme_poll_choicesTheme the admin poll form for choices.
_poll_choice_form
_poll_menu_accessCallback function to see if a node is acceptable for poll menu items.
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.