xref: /plugin/captcha/conf/metadata.php (revision 186227361d0efe9f0e20bd52c87dfbf939efb53a)
142a27035SAndreas Gohr<?php
242a27035SAndreas Gohr/**
342a27035SAndreas Gohr * Options for the CAPTCHA plugin
442a27035SAndreas Gohr *
542a27035SAndreas Gohr * @author Andreas Gohr <andi@splitbrain.org>
642a27035SAndreas Gohr */
742a27035SAndreas Gohr
8*18622736SAndreas Gohr$meta['mode'] = array(
9*18622736SAndreas Gohr    'multichoice',
10*18622736SAndreas Gohr    '_choices' => array(
11*18622736SAndreas Gohr        'js',
12*18622736SAndreas Gohr        'text',
13*18622736SAndreas Gohr        'math',
14*18622736SAndreas Gohr        'question',
15*18622736SAndreas Gohr        'image',
16*18622736SAndreas Gohr        'audio',
17*18622736SAndreas Gohr        'svg',
18*18622736SAndreas Gohr        'svgaudio',
19*18622736SAndreas Gohr        'figlet',
20*18622736SAndreas Gohr    ),
21*18622736SAndreas Gohr);
2242a27035SAndreas Gohr$meta['forusers'] = array('onoff');
23643f15bdSAndreas Gohr$meta['loginprotect'] = array('onoff');
2428c14643SAndreas Gohr$meta['lettercount'] = array('numeric', '_min' => 3, '_max' => 16);
2542a27035SAndreas Gohr$meta['width'] = array('numeric', '_pattern' => '/[0-9]+/');
2642a27035SAndreas Gohr$meta['height'] = array('numeric', '_pattern' => '/[0-9]+/');
27df8afac4SAndreas Gohr$meta['question'] = array('string');
28df8afac4SAndreas Gohr$meta['answer'] = array('string');
29