xref: /plugin/deletepageguard/conf/metadata.php (revision 994617c99eb4de6734040e280e3cda0f9a974997)
1e39ccd63SJonny Dee<?php
2e39ccd63SJonny Dee/**
3*994617c9SJohann 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.
8e39ccd63SJonny Dee */
9e39ccd63SJonny Dee
10*994617c9SJohann Duscher// patterns: use the default (empty) class to render a textarea control. This
11*994617c9SJohann Duscher// allows multiple regular expressions to be entered on separate lines. Each
12*994617c9SJohann Duscher// line should contain one Perl‑compatible regular expression. The
13*994617c9SJohann Duscher// Configuration Manager treats an empty setting class as a multiline
14*994617c9SJohann Duscher// textarea for free text input.
15*994617c9SJohann Duscher$meta['patterns'] = array('');
16e39ccd63SJonny Dee
17e39ccd63SJonny Dee// match_target: single choice from a list of options. Choices are
18e39ccd63SJonny Dee// 'id' (match against page ID) and 'filepath' (match against relative
19e39ccd63SJonny Dee// filesystem path). The order of choices determines display order.
20e39ccd63SJonny Dee$meta['match_target'] = array('multichoice', '_choices' => array('id','filepath'));
21e39ccd63SJonny Dee
22e39ccd63SJonny Dee// exempt_groups: comma separated list. Use 'string' for free text input.
23e39ccd63SJonny Dee$meta['exempt_groups'] = array('string');
24e39ccd63SJonny Dee
25e39ccd63SJonny Dee// trim_mode: boolean on/off. Use 'onoff' to present a checkbox.
26e39ccd63SJonny Dee$meta['trim_mode'] = array('onoff');