Hi James,<br><br><span style="font-family: courier new,monospace;"><?php</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">$Vtiger_Utils_Log = true;</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">require_once 'vtlib/Vtiger/Module.php';</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">$moduleInstance = Vtiger_Module::getInstance('MODULENAME');</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">$fieldInstance = Vtiger_Field::getInstance('FIELDNAME', $moduleInstance);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">$fieldInstance->delete();</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">?></span><br><br>NOTE: The underlying table-column will not be removed. This helps you to preserve data or re-add field later.<br><br>Regards,<br>Prasad<br>vtiger Team<br>
<br><div class="gmail_quote">On Wed, Sep 1, 2010 at 11:08 PM, Mutuku Ndeti <span dir="ltr"><<a href="mailto:jnmutuku@gmail.com">jnmutuku@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>Is it possible to delete/Modify existing fields in custom modules using vtlib? Any documentation?<br><br>James<br>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br>