Closed (fixed)
Project:
Rate
Version:
7.x-1.6
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2014 at 17:57 UTC
Updated:
19 Mar 2014 at 16:03 UTC
Jump to comment: Most recent
Comments
Comment #1
plessas commentedWell, it was easier than i thought. I used the hook_rate_widget_alter() function to alter the widget label when the user has voted for this entity. What I didn't expect was that the widget seems to reload after the user casts or deletes a vote, so there is no need for any other action (e.g. ajax). After the user clicks on it, it takes the right label.
Comment #2
plessas commented