| 1 |
<?php |
<?php |
| 2 |
// $Id: captcha.admin.inc,v 1.30 2009/08/10 22:33:34 soxofaan Exp $ |
// $Id: captcha.admin.inc,v 1.31 2009/09/24 07:31:26 soxofaan Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Return an array with the available CAPTCHA types, for use as options array |
* Return an array with the available CAPTCHA types, for use as options array |
| 453 |
'#value' => t('This page gives an overview of all available challenge types, generated with their current settings.'), |
'#value' => t('This page gives an overview of all available challenge types, generated with their current settings.'), |
| 454 |
); |
); |
| 455 |
foreach (module_implements('captcha') as $mkey => $module) { |
foreach (module_implements('captcha') as $mkey => $module) { |
| 456 |
$challenges = call_user_func_array($module .'_captcha', 'list'); |
$challenges = call_user_func_array($module .'_captcha', array('list')); |
| 457 |
if ($challenges) { |
if ($challenges) { |
| 458 |
foreach ($challenges as $ckey => $challenge) { |
foreach ($challenges as $ckey => $challenge) { |
| 459 |
$form["captcha_{$mkey}_{$ckey}"] = array( |
$form["captcha_{$mkey}_{$ckey}"] = array( |