You are here

function rate_update_7101 in Rate 7

Add "delete_vote_on_second_click" property.

File

./rate.install, line 132
Installation/Uninstallation functions for rate module.

Code

function rate_update_7101() {
  $widgets = variable_get('rate_widgets', array());
  foreach ($widgets as $widget_id => $widget) {
    if (!isset($widget->delete_vote_on_second_click)) {
      $widget->delete_vote_on_second_click = 0;
    }
    $widgets[$widget_id] = $widget;
  }
  variable_set('rate_widgets', $widgets);
  return array();
}