[Vtigercrm-developers] Vtlib-Deleting?Modifying Fields
Prasad
prasad at vtiger.com
Thu Sep 2 00:18:57 PDT 2010
Hi James,
<?php
$Vtiger_Utils_Log = true;
require_once 'vtlib/Vtiger/Module.php';
$moduleInstance = Vtiger_Module::getInstance('MODULENAME');
$fieldInstance = Vtiger_Field::getInstance('FIELDNAME', $moduleInstance);
$fieldInstance->delete();
?>
NOTE: The underlying table-column will not be removed. This helps you to
preserve data or re-add field later.
Regards,
Prasad
vtiger Team
On Wed, Sep 1, 2010 at 11:08 PM, Mutuku Ndeti <jnmutuku at gmail.com> wrote:
> Hello,
>
> Is it possible to delete/Modify existing fields in custom modules using
> vtlib? Any documentation?
>
> James
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20100902/81bbfca9/attachment-0002.html
More information about the vtigercrm-developers
mailing list