You are here

function captcha_after_get_captcha_forms in CAPTCHA After 6

Same name and namespace in other branches
  1. 7 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();
  $res = db_query('SELECT form_id FROM {captcha_points} WHERE module IS NOT NULL OR captcha_type IS NOT NULL ORDER BY form_id');
  while ($form = db_fetch_object($res)) {
    $forms[$form->form_id] = $form->form_id;
  }
  return $forms;
}