fivestar.module

Version 1.13.2.72 (checked in on 2009/10/04 at 17:16:48 by ezrag)

A simple n-star voting widget, usable in other forms.

Functions

NameDescription
fivestar_add_cssFetch the necessary CSS files to render the fivestar widget.
fivestar_add_inline_cssAdd Inline CSS to the page, only used on admin/settings/fivestar page.
fivestar_add_jsAdd necessary JS files and settings to render the fivestar widget.
fivestar_block
fivestar_check_tokenCheck to see if a token value matches the specified node.
fivestar_custom_widget
fivestar_elementsImplementation of hook_elements().
fivestar_expandProcess callback for fivestar_element -- see fivestar_element()
fivestar_fivestar_accessImplementation of hook_fivestar_access().
fivestar_fivestar_widgetsImplementation of hook_fivestar_widgets().
fivestar_formCreate the fivestar form for the current item. Note that this is not an implementation of hook_form(). We should probably change the function to reflect that.
fivestar_formsImplementation of hook_forms().
fivestar_form_alterImplementation of hook_form_alter().
fivestar_form_submitSubmit handler for the above form (non-javascript version).
fivestar_get_inline_cssRetrieve a list of all inline CSS to be added to the page.
fivestar_get_tokenGet a private token used to protect links from CSRF attacks.
fivestar_get_votes
fivestar_help
fivestar_initImplementation of hook_init().
fivestar_linkImplementation of hook_link().
fivestar_menuImplementation of hook_menu().
fivestar_nodeapiImplementation of hook_nodeapi().
fivestar_node_typeImplementation of hook_node_types().
fivestar_node_type_form_submitAdditional submit handler for the node type form.
fivestar_permImplementation of hook_perm().
fivestar_previewCallback function for fivestar/preview/node. Outputs a JSON page containing a Fivestar preview of a node rating widget.
fivestar_preview_colorCallback function for fivestar/preview/color.
fivestar_settingsCallback function for admin/settings/fivestar. Display the settings form.
fivestar_settings_submit
fivestar_static
fivestar_themeImplementation of hook_theme().
fivestar_validate
fivestar_validate_targetCheck that an item being voted upon is a valid vote.
fivestar_views_value_display_handlerVotingAPI Views formatter for displaying static stars.
fivestar_views_value_text_handlerVotingAPI Views formatter for displaying number of stars as text.
fivestar_views_widget_compact_handlerVotingAPI Views formatter for displaying rating widget without text.
fivestar_views_widget_handlerGeneric VotingAPI Views formatter for displaying rating widget.
fivestar_views_widget_normal_handlerVotingAPI Views formatter for displaying rating widget with text.
fivestar_voteCallback function for fivestar/vote.
fivestar_votingapi_metadata_alterImplementation of hook_votingapi_metadata_alter().
fivestar_votingapi_views_formattersImplementation of hook_votingapi_views_formatters().
fivestar_widget_form
theme_fivestarTheme the fivestar form element by adding necessary css and javascript.
theme_fivestar_node_type_formTheme function to add the Fivestar preview to the node type form.
theme_fivestar_preview
theme_fivestar_preview_widget
theme_fivestar_preview_wrapper
theme_fivestar_selectTheme the straight HTML version of the fivestar select list. This is used to remove the wrapping 'form-item' div from the select list.
theme_fivestar_settings
theme_fivestar_staticDisplay a plain HTML VIEW ONLY version of the widget with the specified rating
theme_fivestar_static_elementDisplay a static fivestar value as stars with a title and description.
theme_fivestar_summary
theme_fivestar_widgetTheme an entire fivestar widget, including the submit button and the normal fivestar widget themed in the theme_fivestar() function.
_fivestar_cast_voteInternal function to handle vote casting, flood control, XSS, IP based voting, etc...