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

marvil07’s picture

Status: Active » Fixed

What would be the best way to theme vud_node_tracker()?

Yeah, 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.

Also, I will be wanting to report voting split on some demographics, so assume I should be doing that with views, correct?

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.

winnie80’s picture

For 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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.