How to create an average out of 3 Fivestar Fields? I want to create a Fivestar-Field which shows the average of 3 other ones.

Something like:

(Field A + Field B + Field C):3 = Field D

A,B and C are Fivestar-Fields which rate something and Field D is the average value out of the three.

I want the average to be showed via the star-widget of fivestar.

Is there a way to do that?

(I use Drupal 7)
Yes, You can able to do that using hook_node_presave

You can read three field values rating using $node and set using below command

$node-&gt;field_name_of_your_fourth_field[$node-&gt;language][0]['rating'] = $average_value;