function captcha_update_6201 in CAPTCHA 7
Same name and namespace in other branches
- 6.2 captcha.install \captcha_update_6201()
Implements of hook_update_N().
Change the captcha points with the old text CAPTCHA, which was removed from the 6.x-2.x branch, to the simple math CAPTCHA.
File
- ./
captcha.install, line 254 - Install, update and uninstall functions for the CAPTCHA module.
Code
function captcha_update_6201() {
$items = array();
$items[] = update_sql("UPDATE {captcha_points} SET module = 'captcha', type = 'Math' WHERE module = 'text_captcha' AND type = 'Text';");
return $items;
}