function image_captcha_update_6203 in CAPTCHA 6.2
Implementation of hook_update_N().
Translate single font variable to multiple font variable.
File
- image_captcha/
image_captcha.install, line 61
Code
function image_captcha_update_6203() {
// Old single font variable.
$font = variable_get('image_captcha_font', NULL);
// If there was a valid value,
// save it as an array to the new multiple fonts variable.
if ($font != NULL) {
variable_set('image_captcha_fonts', array(
$font,
));
}
return array();
}