function captcha_after_db_get_forms in CAPTCHA After 6
Same name and namespace in other branches
- 7 captcha_after.module \captcha_after_db_get_forms()
Loads all captcha_after forms settings from database.
Return value
array Array of all captcha_after form settings.
1 call to captcha_after_db_get_forms()
- captcha_after_settings in ./
captcha_after.admin.inc - CAPTCHA after settings form.
File
- ./
captcha_after.module, line 211 - Show CAPTCHA protection on selected forms after specified number of unsuccessful form submit attempts has been made.
Code
function captcha_after_db_get_forms() {
$forms = array();
$res = db_query('SELECT * FROM {captcha_after}');
while ($form = db_fetch_array($res)) {
$form['options'] = empty($form['options']) ? $form['options'] : unserialize($form['options']);
$forms[$form['form_id']] = $form;
}
return $forms;
}