[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/modules/poll/ -> poll.module (summary)

(no description)

File Size: 784 lines (25 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 modules/node/node.pages.inc

Defines 33 functions

  poll_help()
  poll_init()
  poll_theme()
  poll_perm()
  poll_access()
  poll_menu()
  _poll_menu_access()
  poll_block()
  poll_cron()
  poll_node_info()
  poll_form()
  poll_more_choices_submit()
  _poll_choice_form()
  poll_choice_js()
  poll_node_form_submit()
  poll_validate()
  poll_load()
  poll_insert()
  poll_update()
  poll_delete()
  poll_view()
  poll_teaser()
  poll_view_voting()
  poll_view_voting_validate()
  poll_vote()
  template_preprocess_poll_vote()
  poll_view_results()
  theme_poll_choices()
  template_preprocess_poll_results()
  template_preprocess_poll_bar()
  poll_cancel_form()
  poll_cancel()
  poll_user()

Functions
Functions that are not part of a class:

poll_help($path, $arg)   X-Ref
Implementation of hook_help().


poll_init()   X-Ref
Implementation of hook_init().


poll_theme()   X-Ref
Implementation of hook_theme()


poll_perm()   X-Ref
Implementation of hook_perm().


poll_access($op, $node, $account)   X-Ref
Implementation of hook_access().


poll_menu()   X-Ref
Implementation of hook_menu().


_poll_menu_access($node, $perm, $inspect_allowvotes)   X-Ref
Callback function to see if a node is acceptable for poll menu items.


poll_block($op = 'list', $delta = 0)   X-Ref
Implementation of hook_block().

Generates a block containing the latest poll.

poll_cron()   X-Ref
Implementation of hook_cron().

Closes polls that have exceeded their allowed runtime.

poll_node_info()   X-Ref
Implementation of hook_node_info().


poll_form(&$node, $form_state)   X-Ref
Implementation of hook_form().


poll_more_choices_submit($form, &$form_state)   X-Ref
Submit 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_choice_form($delta, $value = '', $votes = 0)   X-Ref
No description

poll_choice_js()   X-Ref
Menu callback for AHAH additions.


poll_node_form_submit(&$form, &$form_state)   X-Ref
Renumbers fields and creates a teaser when a poll node is submitted.


poll_validate($node)   X-Ref
Implementation of hook_validate().


poll_load($node)   X-Ref
Implementation of hook_load().


poll_insert($node)   X-Ref
Implementation of hook_insert().


poll_update($node)   X-Ref
Implementation of hook_update().


poll_delete($node)   X-Ref
Implementation of hook_delete().


poll_view($node, $teaser = FALSE, $page = FALSE, $block = FALSE)   X-Ref
Implementation of hook_view().

param: $block

poll_teaser($node)   X-Ref
Creates a simple teaser that lists all the choices.

This is primarily used for RSS.

poll_view_voting(&$form_state, $node, $block)   X-Ref
Generates the voting form for a poll.


poll_view_voting_validate($form, &$form_state)   X-Ref
Validation function for processing votes


poll_vote($form, &$form_state)   X-Ref
Submit handler for processing a vote


template_preprocess_poll_vote(&$variables)   X-Ref
Themes the voting form for a poll.

Inputs: $form

poll_view_results(&$node, $teaser, $page, $block)   X-Ref
Generates a graphical representation of the results of a poll.


theme_poll_choices($form)   X-Ref
Theme the admin poll form for choices.


template_preprocess_poll_results(&$variables)   X-Ref
Preprocess the poll_results theme hook.

Inputs: $raw_title, $results, $votes, $raw_links, $block, $nid, $vote. The
$raw_* inputs to this are naturally unsafe; often safe versions are
made to simply overwrite the raw version, but in this case it seems likely
that the title and the links may be overridden by the theme layer, so they
are left in with a different name for that purpose.


template_preprocess_poll_bar(&$variables)   X-Ref
Preprocess the poll_bar theme hook.

Inputs: $title, $votes, $total_votes, $voted, $block


poll_cancel_form(&$form_state, $nid)   X-Ref
Builds the cancel form for a poll.


poll_cancel($form, &$form_state)   X-Ref
Submit callback for poll_cancel_form


poll_user($op, &$edit, &$user)   X-Ref
Implementation of hook_user().




Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7