*** votingapi.module.5.x-1.5 2007-11-05 11:01:34.000000000 +1100 --- votingapi.module 2007-11-05 11:02:46.000000000 +1100 *************** *** 8,13 **** --- 8,17 ---- define('VOTINGAPI_VALUE_DEFAULT_TAG', 'vote'); define('VOTINGAPI_VALUE_DEFAULT_TYPE', 'percent'); + if (module_exists('views')) { + require_once(drupal_get_path('module', 'votingapi') .'/votingapi_views.inc'); + } + function votingapi_menu($may_cache) { $items = array(); if ($may_cache) { *************** *** 20,28 **** 'type' => MENU_NORMAL_ITEM ); } - if (module_exists('views')) { - require_once(drupal_get_path('module', 'votingapi') .'/votingapi_views.inc'); - } return $items; } --- 24,29 ---- *************** *** 603,606 **** } return $cached[$table][$field]; ! } \ No newline at end of file --- 604,607 ---- } return $cached[$table][$field]; ! }