[Vtigercrm-developers] Executing post install
srihari Tp
srihari.tp at vtiger.com
Thu Nov 17 04:51:10 PST 2011
Hi Prasad,
There is no Vtlib event handler *preinstall*. 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.
Let us know your valuable feedback.
Regards,
Srihari,
vtiger team.
On Tue, Nov 15, 2011 at 6:06 PM, S T Prasad <stprasad at stprasad.com> wrote:
> By any chance is preinstall also an event that can be used?
> Regards,
> S.T.Prasad
>
> On Mon, Nov 14, 2011 at 8:51 PM, srihari Tp <srihari.tp at vtiger.com> wrote:
>
>> Hi S T Prasad,
>>
>> If you want to execute any script after the installation of a
>> module, you should place that script in* postinstall *event of Vtlib
>> event handler.
>>
>> Example:
>>
>> function vtlib_handler($modulename, $event_type)
>> {
>> if($event_type == 'module.postinstall')
>> {
>> // TODO Handle post installation actions
>> }
>> }
>>
>> This above function should be placed in Module class which
>> generally declared in Module.php.For example if you are working on
>> FieldFormulas
>> module, this script should be placed in FieldFormulas.php.
>>
>> For more information you can refer to *Appendix 4 –
>> vtlib_handler Method *topic in Vtlib Documentation<http://www.vtiger.com/products/crm/help/5.2.0/VtigerCRM_5.2.0_Vtlib.pdf>
>> .
>>
>>
>>
>>
>>> ---------- Forwarded message ----------
>>> From: S T Prasad <stprasad at stprasad.com>
>>> Date: Mon, Nov 14, 2011 at 2:20 PM
>>> Subject: Executing post install
>>> To: "support at vtiger.com" <support at vtiger.com>
>>> Cc: varma at vtiger.com, "prasad at vtiger.com" <prasad at vtiger.com>
>>>
>>>
>>>
>>> Hello,
>>> 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.
>>> Regards,
>>> S T Prasad
>>>
>>> Sent while mobile
>>> +91 98490 67336
>>> stprasad at stprasad.com
>>>
>>>
>>>
>>>
>>>
>>> Best regards,
>> Srihari,
>> vtiger team.
>>
>
>
>
> --
> With best regards,
>
> S.T.Prasad
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20111117/42175f8a/attachment-0002.html
More information about the vtigercrm-developers
mailing list