Commit 303c4556 authored by Arnab Nandi's avatar Arnab Nandi
Browse files

Added a hook_perm, in response to issue #19254

parent 4faee44f
......@@ -2,6 +2,7 @@
To Install:
Enable the module, and then go to admin/settings/captcha to enable captchas for various actions.
Then go to admin/access control to enable the access to the captcha (access captchas) for roles.
- Uses GD to draw stuff, emits in PNG
......@@ -32,12 +32,20 @@ function captcha_menu($may_cache) {
if (arg(2)!=null) $suffix='/'.arg(2);
$items[] = array('path' => 'captcha/image'.$suffix, 'title' => t('captcha image'),
'callback' => '_captcha_image', 'access' => user_access('access content'),
'callback' => '_captcha_image', 'access' => user_access('access captchas'),
'type' => MENU_CALLBACK);
return $items;
* Implementation of hook_perm, in response to issue #19254
* This adds yet another value to configure, but it's a safer option.
function captcha_perm() {
return array('access captchas');
function captcha_settings() {
//check for GD
Supports Markdown
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