VotingAPI for drupal 7 changes some of the key names in the array structures passed to hook_votingapi_insert and hook_votingapi_delete. Where before you had 'content_type' and 'content_id' it now uses 'entity_type' and 'entity_id'.

Attached patch fixes this and at the same time also updates the query in _expire_votingapi() to use DBTNG and to use the new table name for comments ({comments} d6 -> {comment} d7).

CommentFileSizeAuthor
expire-votingapi_fix.patch974 bytesjaydub
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

halcyonCorsair’s picture

Version: 7.x-1.x-dev » 7.x-1.0-alpha1
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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