Contributions API

Calling all Drupal developers!

Help us get this on the first page of Digg. DIGG NOW!

Modules in 6

fivestar.module

Version

1.13.2.26 (checked in on 2008/04/19 at 05:59:17 by quicksketch)

Description

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

Functions

Namesort iconDescription
fivestar_add_cssFetch the necessary CSS files to render the fivestar widget.
fivestar_add_jsAdd necessary JS files and settings to render the fivestar widget.
fivestar_block
fivestar_custom_widget
fivestar_elementsImplementation of hook_elements
fivestar_expandProcess callback for fivestar_element -- see fivestar_element()
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. This is necessary when multiple fivestar forms appear on the same page, each requiring a separate form_id, but all using the same underlying callbacks.
fivestar_form_alterImplementation of hook_form_alter Adds fivestar enaable and position to the node-type configuration form.
fivestar_form_submitSubmit handler for the above form (non-javascript version).
fivestar_get_votes
fivestar_help
fivestar_initImplementation of hook_init().
fivestar_linkImplementation of hook_link()
fivestar_menuImplementation of hook_menu(). Provides a callback url where votes can be submitted by the client-side javascript.
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 (permissions). Exposes permissions for rating content, viewing aggregate ratings, and using PHP snippets when configuring fivestar CCK fields.
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_views_value_display_handler
fivestar_views_widget_compact_handler
fivestar_views_widget_handler
fivestar_views_widget_normal_handler
fivestar_voteCallback function for fivestar/vote.
fivestar_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...
_fivestar_validate_targetInternal function to check that node-type accepts votes