You are here

function fivestar_update_6100 in Fivestar 6

Same name and namespace in other branches
  1. 6.2 fivestar.install \fivestar_update_6100()

Upgrade to Drupal 6 and VotingAPI 2.

Remove anonymous vote interval from Fivestar, now handled by VotingAPI.

File

./fivestar.install, line 107
Installation file for fivestar module.

Code

function fivestar_update_6100() {

  // If using CCK, make sure it has updated first.
  if (function_exists('content_check_update') && ($abort = content_check_update('fivestar'))) {
    return $abort;
  }
  $ret = array();
  variable_del('fivestar_anonymous_vote_interval');
  $ret[] = array(
    'success' => TRUE,
    'query' => "variable_del('fivestar_anonymous_vote_interval')",
  );
  return $ret;
}