Hi!

I've been writing my own module to act as a front end to votingapi.module. I've got it to succesfully enter points-style votes into the votingapi_vote and _cache tables, and now I want to set an action to occur when the sum of my votes gets to a certain level. However, when I try to set up the action in ?q=admin/voting_actions (using any of the actions available in ?q=admin/actions, although eventually I want to write my own actions), the action isn't triggered when my specified criteria are reached.

I've set the following criteria:
value type = Points
tag = POLLMOD_POLL_ID_2 (the tag that I've given to the votes in the votingapi_vote and _cache tables)
function = sum
comparison = is equal to
value = 25

action = send email to me (configured using ?q=admin/actions, to send an email to my email address)

in ?q=admin/settings/votingapi, I've got the following set:
Tally results whenever a vote is cast
Allow modules to register their own voting actions

Is there something else that I'm supposed to set too?

I've had a bit of a look into the source code of votingapi_actions.inc (drupal_root_directory/modules/votingapi/votingapi_actions.inc), and found that the function _votingapi_process_actions() is called whenever a vote is cast. This function seems to create an array called $action_sets of all of the actions available to a vote, and then see if any of the conditions have met. However, if I insert the line 'print_r($action_sets);die();', the output contains an empty array.
Also, looking into my MYSQL database, the tables votingapi_action, votingapi_action_condition, and votingapi_action_set are all empty.

Have I done anything obviously wrong here?

Thanks in advance for any help you can give!