Hi Prasad,<br> <br> There is no Vtlib event handler <i>preinstall</i>. Can you please let us know in which scenario you needed this event , if the scenario is generic then we can request for the api. <br><br> Let us know your valuable feedback.<br>
<br>Regards,<br>Srihari,<br>vtiger team.<br><br><br><div class="gmail_quote">On Tue, Nov 15, 2011 at 6:06 PM, S T Prasad <span dir="ltr"><<a href="mailto:stprasad@stprasad.com">stprasad@stprasad.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">By any chance is preinstall also an event that can be used?<div>Regards,</div><div><span class="HOEnZb"><font color="#888888">S.T.Prasad<br>
<br></font></span><div class="gmail_quote"><div class="im">On Mon, Nov 14, 2011 at 8:51 PM, srihari Tp <span dir="ltr"><<a href="mailto:srihari.tp@vtiger.com" target="_blank">srihari.tp@vtiger.com</a>></span> wrote:<br>
</div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi S T Prasad,<br> <br> If you want to execute any script after the installation of a module, you should place that script in<i> postinstall </i>event of Vtlib event handler.<br>
<br><div style="margin-left:40px"><span style="color:rgb(0, 0, 0)">Example:</span><br>
<br>function vtlib_handler($modulename, $event_type)<br> {<br> if($event_type == 'module.postinstall')<br> { <br> // TODO Handle post installation actions<br> }<br>}<br></div><br> This above function should be placed in Module class which generally declared in Module.php.For example if you are working on FieldFormulas <br>
module, this script should be placed in FieldFormulas.php.<br><br> For more information you can refer to <i><b>Appendix 4 – vtlib_handler Method </b></i>topic in <a href="http://www.vtiger.com/products/crm/help/5.2.0/VtigerCRM_5.2.0_Vtlib.pdf" target="_blank">Vtlib Documentation</a>.<div>
<div></div><div><br>
<div class="gmail_quote"><div><br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex"><div class="gmail_quote">---------- Forwarded message ----------<br>
From: <b class="gmail_sendername">S T Prasad</b> <span dir="ltr"><<a href="mailto:stprasad@stprasad.com" target="_blank">stprasad@stprasad.com</a>></span><br>
Date: Mon, Nov 14, 2011 at 2:20 PM<br>Subject: Executing post install<br>To: "<a href="mailto:support@vtiger.com" target="_blank">support@vtiger.com</a>" <<a href="mailto:support@vtiger.com" target="_blank">support@vtiger.com</a>><br>
Cc: <a href="mailto:varma@vtiger.com" target="_blank">varma@vtiger.com</a>, "<a href="mailto:prasad@vtiger.com" target="_blank">prasad@vtiger.com</a>" <<a href="mailto:prasad@vtiger.com" target="_blank">prasad@vtiger.com</a>><br>
<br><br><br>
Hello,<br>
Could you point me to the ability to execute a script once after install of a module. I looked at the FieldFormulas for guidance, but I probably some help.<br>
Regards,<br>
S T Prasad<br>
<br>
Sent while mobile<br>
+91 98490 67336<br>
<a href="mailto:stprasad@stprasad.com" target="_blank">stprasad@stprasad.com</a><br>
<br>
</div><font color="#888888"><br><br clear="all"> <br></font><br></blockquote></div></div></div> Best regards,<br> Srihari,<br> vtiger team.<br>
</blockquote></div></div></div><br><br clear="all"><div class="im"><div><br></div>-- <br>With best regards,<br><br>S.T.Prasad<br><br>
</div></div>
</blockquote></div><br>