| 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 |
|