Hi guys,<br><br>I'm trying to develop an event that will manipulate the save flow from a module. I took as an example the "Leads" module and created an event for it that is triggered before saving a Lead. I did this because I need to do form validation server side (security issues). All I need to do now is to find a way to redirect the save action back to the edit page if there's a validation error, but I couldn't find anyway to do this. Can anyone give me a clue on how to manipulate this flow?<br>
<br>Here's my class skeleton just to show you what I'm talking about:<br><br><?php<br>class CheckSomething extends VTEventHandler {<br> function handleEvent($eventName, $data) {<br> if($eventName == 'vtiger.entity.beforesave') {<br>
//VALIDATION AND FLOW CONTROL GOES HERE<br> } <br> }<br>}<br>?><br><br>Thanks in advance.<br><br>Nicolas<br><br>P.S - I'm doing this way cause I can't modify ANYTHING into the VTIGER's core. Sry...boss especs.<br>