Wednesday, April 11, 2012

Fivestar float rating module - Drupal

I have just created a sandbox module that allows inputting of float values for Fivestar fields, so that it is easy to create ratings such as 2.7/5, 3.1/5 etc.

This module adds a field widget to the Fivestar field, which is a textfield that will take a float value as rating input. The display is unaffected and uses the default Fivestar theme functions. Users can override the theme functions to make use of better floating point precision by affecting the round() function there. See more description in the project page.

Awaiting comments, thoughts and reviews before I decide on the further course of action.

Do read this fivestar feature request first, as to what is missing and why I created this module.