Commit 06adf369 authored by git's avatar git Committed by elachlan

Issue #315827 by yenerunver: Placement of Captcha - why in middle of form?

parent af34f84f
......@@ -248,7 +248,7 @@ function _captcha_get_captcha_placement($form_id, $form) {
if (count($buttons)) {
// Pick first button.
// TODO: make this more sofisticated? Use cases needed.
$placement = $buttons[0];
$placement = (isset($buttons[count($buttons) - 1])) ? $buttons[count($buttons) - 1] : $buttons[0];
}
else {
// Use NULL when no buttons were found.
......
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