You are here

function chosen_update_7202 in Chosen 7.2

Fix variables that should be integers and not strings.

File

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

Code

function chosen_update_7202() {
  $variables = array(
    'chosen_minimum_single',
    'chosen_minimum_multiple',
    'chosen_disable_search_threshold',
  );
  foreach ($variables as $variable) {
    $value = variable_get($variable, 0);
    if (!is_numeric($value)) {
      variable_set($variable, 0);
    }
  }
}