<?php

/**
 * Implementation of hook_uninstall().
 */
function views_checkboxes_uninstall() {
  variable_del('views_checkboxes_checkbox_enable');
  variable_del('views_checkboxes_radio_enable');
  variable_del('views_checkboxes_limit');
  variable_del('views_checkboxes_listsize');
  variable_del('views_checkboxes_sizeup');
}

/**
 * Implementation of hook_update()
 */
function views_checkboxes_update_1() {
  $was_enabled = variable_get('views_checkboxes_enable', FALSE);
  if ($was_enabled) {
    variable_set('views_checkboxes_checkbox_enable', TRUE);
    variable_set('views_checkboxes_radio_enable', TRUE);
    variable_del('views_checkboxes_enable');
  }
}
