diff --git a/advpoll.module b/advpoll.module index e627e29..4a57526 100644 --- a/advpoll.module +++ b/advpoll.module @@ -1171,11 +1171,15 @@ function _advpoll_show_writeins_access() { } /** - * Implements hook_views_api(). + * Implementation of hook_votingapi_relationships(). */ -function advpoll_views_api() { - return array( - 'api' => 3, - 'path' => drupal_get_path('module', 'advpoll') . '/views', - ); +function advpoll_votingapi_relationships() { + $relationships[] = array( + 'description' => t('Advanced Poll'), + 'entity_type' => 'advpoll', + 'base_table' => 'node', + 'entity_id_column' => 'nid', + ); + return $relationships; } +