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