You are here

function chosen_update_7201 in Chosen 7.2

Same name and namespace in other branches
  1. 7.3 chosen.install \chosen_update_7201()

Implements hook_update_N().

Transfer the old chosen minimum value to the new chosen minimum single and chosen minimum multiple variables.

File

./chosen.install, line 67
Installation and uninstallation functions.

Code

function chosen_update_7201() {
  $chosen_minimum = variable_get('chosen_minimum', 20);
  variable_set('chosen_minimum_single', $chosen_minimum);
  variable_set('chosen_minimum_multiple', $chosen_minimum);
  variable_del('chosen_minimum');
}