xref: /plugin/deletepageguard/conf/metadata.php (revision e39ccd63478fc57ef8a8eb17b92c646766ac43fd)
1*e39ccd63SJonny Dee<?php
2*e39ccd63SJonny Dee/**
3*e39ccd63SJonny Dee * Configuration metadata for the Delete Guard plugin
4*e39ccd63SJonny Dee *
5*e39ccd63SJonny Dee * The Configuration Manager uses this metadata to render appropriate
6*e39ccd63SJonny Dee * input controls and perform simple validation. For details see the
7*e39ccd63SJonny Dee * DokuWiki developer documentation.
8*e39ccd63SJonny Dee */
9*e39ccd63SJonny Dee
10*e39ccd63SJonny Dee// patterns: use the default 'string' class to allow free text. You may
11*e39ccd63SJonny Dee// specify multiple patterns separated by newlines. There is no built‑in
12*e39ccd63SJonny Dee// textarea class, but the Configuration Manager will provide a multi‑line
13*e39ccd63SJonny Dee// input for long strings when the `_type` is not specified.
14*e39ccd63SJonny Dee$meta['patterns'] = array('string');
15*e39ccd63SJonny Dee
16*e39ccd63SJonny Dee// match_target: single choice from a list of options. Choices are
17*e39ccd63SJonny Dee// 'id' (match against page ID) and 'filepath' (match against relative
18*e39ccd63SJonny Dee// filesystem path). The order of choices determines display order.
19*e39ccd63SJonny Dee$meta['match_target'] = array('multichoice', '_choices' => array('id','filepath'));
20*e39ccd63SJonny Dee
21*e39ccd63SJonny Dee// exempt_groups: comma separated list. Use 'string' for free text input.
22*e39ccd63SJonny Dee$meta['exempt_groups'] = array('string');
23*e39ccd63SJonny Dee
24*e39ccd63SJonny Dee// trim_mode: boolean on/off. Use 'onoff' to present a checkbox.
25*e39ccd63SJonny Dee$meta['trim_mode'] = array('onoff');