function captcha_after_db_get_forms in CAPTCHA After 7
Same name and namespace in other branches
- 6 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 216 - 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();
$result = db_query('SELECT * FROM {captcha_after}');
while ($form = $result
->fetchAssoc()) {
$form['options'] = empty($form['options']) ? $form['options'] : unserialize($form['options']);
$forms[$form['form_id']] = $form;
}
return $forms;
}