view_workflow_action
Allows adding of custom content to request action execution forms.
Helpdesk
Input (passed by reference)
$params['action'] helpdeskViewAction Request action class instance.
$params['view'] waSmarty3View Smarty template engine class instance.
$params['view'] waSmarty3View Smarty template engine class instance.
… your plugin code …
Output
{$view_workflow_action.%plugin_id%}
Custom content to be added to a request action execution form.
Helpdesk
Plugin code example
PHP
public function viewWorkflowAction($params) { if ($params['action']->getId() == 'reply') { return '<div id="myplugin-template" style="display: none;"> <h1>' . _wp('Caution!') . '</h1> <p><i class="icon16 exclamation"></i> ' . _wp('Be careful when writing a reply to your customer.') . '</p> </div> <script> $("#myplugin-template").clone().show().waDialog({ buttons: "<a href=\"javascript:void(0);\" class=\"cancel button blue\">' . _wp('Got it') . '</a>", height: "200px", width: "500px" }); </script>'; } }