User Goals
Component ID
1052080
Component name
User Goals
Component type
module
Maintenance status
Component security advisory coverage
not-covered
Downloads
498
Component created
Component changed
Component body
Allow users to setup a personal goal to display in their profile and/or author pane.
Goals are presented with a graphical slider/ticker and a message. Examples:
- 12 lbs lost, 8 lbs to go.
- $80 saved, $170 remaining.
- 12% left to pay - almost debt free!
- 3242 signatures! Still need 1758 more.
Each user may configure their own goal in their user edit page and are given the option to display values as absolute, relative, or percentage. Users write their own message containing tokens. Since many users may not be familiar with token replacement a live preview is provided and updated whenever a setting is changed. Site builders are encouraged to theme this form and provide an example relevant to their users. The provided example is for weight loss.
Integration with the Author Pane module is provided via hook_preprocess_author_pane().