function captcha_after_get_captcha_forms in CAPTCHA After 7
Same name and namespace in other branches
- 6 captcha_after.admin.inc \captcha_after_get_captcha_forms()
Returns array of all forms that are protected by CAPTCHA module.
Return value
Array of forms ids.
1 call to captcha_after_get_captcha_forms()
- captcha_after_settings in ./
captcha_after.admin.inc - CAPTCHA after settings form.
File
- ./
captcha_after.admin.inc, line 111 - Admin part of CAPTCHA After module.
Code
function captcha_after_get_captcha_forms() {
$forms = array();
$result = db_query('SELECT form_id FROM {captcha_points} WHERE module IS NOT NULL OR captcha_type IS NOT NULL ORDER BY form_id');
foreach ($result as $form) {
$forms[$form->form_id] = $form->form_id;
}
return $forms;
}