Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ Installation:
modules directory from your website (typically sites/all/modules).

Dependencies:
The basic CAPTCHA module has no dependencies, nothing special is required.
The basic CAPTCHA module requires
PHP Captcha library Gregwar/Captcha (https://github.com/Gregwar/Captcha).
To install it add contains of captcha/composer.json to
your composer.json file or run:
composer require gregwar/captcha:1.0.11

Conflicts/known issues:
CAPTCHA and page caching do not work together currently.
Expand Down
2 changes: 1 addition & 1 deletion captcha.inc
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ function _captcha_get_captcha_placement($form_id, $form) {
}
else {
// Use NULL when no buttons were found.
$placement = NULL;
$placement = array();
}
}

Expand Down
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"gregwar/captcha": "1.0.11"
}
}