xref: /plugin/deletepageguard/conf/metadata.php (revision 0da697856a21f6e79666d7fe1c6a3ae059c82150)
1<?php
2/**
3 * Configuration metadata for the Delete Page Guard plugin
4 *
5 * The Configuration Manager uses this metadata to render appropriate
6 * input controls and perform simple validation. For details see the
7 * DokuWiki developer documentation.
8 *
9 * @license GPL 2 (https://www.gnu.org/licenses/gpl-2.0.html) - see LICENSE.md
10 * @author  Johann Duscher <jonny.dee@posteo.net>
11 * @copyright 2025 Johann Duscher
12 */
13
14// patterns: use the default (empty) class to render a textarea control. This
15// allows multiple regular expressions to be entered on separate lines. Each
16// line should contain one Perl‑compatible regular expression. The
17// Configuration Manager treats an empty setting class as a multiline
18// textarea for free text input.
19$meta['patterns'] = array('');
20
21// match_target: single choice from a list of options. Choices are
22// 'id' (match against page ID) and 'filepath' (match against relative
23// filesystem path). The order of choices determines display order.
24$meta['match_target'] = array('multichoice', '_choices' => array('id','filepath'));
25
26// exempt_groups: comma separated list. Use 'string' for free text input.
27// Groups should be specified without the '@' prefix.
28$meta['exempt_groups'] = array('string');
29
30// trim_mode: boolean on/off. Use 'onoff' to present a checkbox.
31// When enabled, pages with only whitespace are treated as empty.
32$meta['trim_mode'] = array('onoff');