Hi all,
I'm developing a module that utilizes the $vote api and it would be REALLY useful if I could see the $vote array printed out.
For example -- I have the following in my module:
function userpoints_fivestar_votingapi_insert($vote) {
userpoints_userpointsapi(array(
'uid' => $vote->uid,
'points' => variable_get(USERPOINTS_FIVESTAR_1, 1),
'event' => $vote->tag,
'reference' => 'Vote cast on node '. $vote->content_id,
)
);
}
I cannot for the life of me get the $vote array to print out to the screen. I've tried
print_r ($vote);
dprint_r ($vote); // devel module
I've tried creating helper functions...nothing. I'm stumped!!
Any help would be greatly appreciated...
Mike
Comments
Comment #1
eaton commentedSupport for the 5.x branch of VotingAPI has ended with the release of Drupal 7 and the upcoming release of VotingAPI 7.x-2.4.