PluginProbe
Customify / 2.2.0
Customify v2.2.0
2.10.9 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.7.1 1.3.0 1.3.1 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.6.0 1.6.0.1 1.6.5 1.7.0 1.7.1 All 77 releases
customify / core / defaults.php

defaults.php in Customify 2.2.0, at core/defaults.php

45 lines 963 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php return array
2 (
3 'cleanup' => array
4 (
5 'switch' => array('switch_not_available'),
6 ),
7
8 'checks' => array
9 (
10 'counter' => array('is_numeric', 'not_empty'),
11 ),
12
13 'processor' => array
14 (
15 // callback signature: (array $input, PixCustomifyProcessor $processor)
16
17 'preupdate' => array
18 (
19 // callbacks to run before update process
20 // cleanup and validation has been performed on data
21 ),
22 'postupdate' => array
23 (
24 // callbacks to run post update
25 ),
26 ),
27
28 'errors' => array
29 (
30 'is_numeric' => __('Numberic value required.', 'customify' ),
31 'not_empty' => __('Field is required.', 'customify' ),
32 ),
33
34 'callbacks' => array
35 (
36 // cleanup callbacks
37 'switch_not_available' => 'pixcustomify_cleanup_switch_not_available',
38
39 // validation callbacks
40 'is_numeric' => 'pixcustomify_validate_is_numeric',
41 'not_empty' => 'pixcustomify_validate_not_empty'
42 )
43
44 ); # config
45