Basically, I'm going to be displaying a list of users who have voted on a node, but then show in a modal what their rating was. Now I can use the voting api to get what they voted, but I can't generate a display only widget for what they voted based on the user ID.
Any ideas? This is the function from the Rate module.
/**
* Generate a widget.
*
* @param int $widget_id Widget id
* @param string $content_type "node" or "comment"
* @param int $content_id Node id (nid) or comment id (cid)
* @param bool $teaser
* @param bool $include_div
* @return array
*/
function rate_generate_widget($widget_id, $content_type, $content_id, $mode = RATE_FULL, $include_div = TRUE, $just_voted = FALSE, $displayed = NULL) {}