12345678910111213141516171819202122 |
- {"label":"Action","syntax":"php"}
- <?php
- $_ = array_merge($_POST,$_GET);
- if(isset($_['custom_action'])){
- $response = array();
- switch($_['custom_action']):
- case '{{plugin}}_{{entity}}_save':
- break;
- case '{{plugin}}_{{entity}}_search':
- break;
- endswitch;
- if(isset($response) && is_array($response)){
- header('Content-type: application/json');
- echo json_encode($response);
- }
- exit();
- }
- ?>
|