diff --git a/random_captcha_type/random_captcha_type.module b/random_captcha_type/random_captcha_type.module index 24b7f583de4f74274fe7d86d05828e00e5bb4701..241accf8a884cb0e0946572217ee82a539df424b 100644 --- a/random_captcha_type/random_captcha_type.module +++ b/random_captcha_type/random_captcha_type.module @@ -30,7 +30,7 @@ function random_captcha_type_menu() { /** * Implements hook_captcha(). */ -function random_captcha_type_captcha($op, $captcha_type = '') { +function random_captcha_type_captcha($op, $captcha_type = '', $captcha_sid=NULL) { switch ($op) { case 'list': $enabled_types = _random_captcha_type_get_enabled_types(); @@ -53,7 +53,7 @@ function random_captcha_type_captcha($op, $captcha_type = '') { } list($module, $type) = explode('/', $module_and_type); // Call the generate CAPTCHA hook - $captcha = module_invoke($module, 'captcha', 'generate', $type); + $captcha = module_invoke($module, 'captcha', 'generate', $type, $captcha_sid); // Store the current CAPTCHA type so it can be recovered for // regenerating the form in the validation phase $captcha['form']['random_captcha_type'] = array(