Closed (fixed)
Project:
Vote Up/Down
Version:
6.x-3.0-alpha1
Component:
vud_node
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Feb 2011 at 19:43 UTC
Updated:
10 May 2011 at 20:21 UTC
Thank you for you work on this module. I really appreciate it.
What would be the best way to theme vud_node_tracker()?
For the time being, I have:
$vote['value'] > 0 ? "<span class='vote-yes'>Yes</span>" : "<span class='vote-no'>No</spam>",
in the function, but I am not sure how to hook something into a module or template.
Also, I will be wanting to report voting split on some demographics, so assume I should be doing that with views, correct?
Comments
Comment #1
marvil07 commentedYeah, sorry, there is not a current way to modify the output of that callback, since we are not using a general theme wrapper for the output.
So, if you are still interested on this, please change it to a feature request.
Not sure about what you are referring. With views you can use votingapi data(that vote_up_down create) and show it, but to be able to group by demographics, you should also track form where the vote came, and that's not currently a feature, if you a proposed way to do it please open a feature request.
Comment #2
winnie80 commentedFor theming vud_node_tracker
Since this is a menu callback function
Why not using hook_menu_alter?
Just redirect it to another function
For example MYMODULE_vud_node_tracker()
Copy inside of the original function to this one
And change the inside as you needed
I have done this to refine table on ubercart orders list