Commit 4d706442 authored by soxofaan's avatar soxofaan

#662398: update from 5.x-3.x or 6.x-1.x: change text CAPTCHA (which was...

#662398: update from 5.x-3.x or 6.x-1.x: change text CAPTCHA (which was removed) to simple math CAPTCHA
parent 6da49e04
......@@ -257,3 +257,14 @@ function captcha_update_6200() {
return $items;
}
/**
* Implementation 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.
*/
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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment