[Vtigercrm-developers] Ability to remove custom modules - feature request maybe?

Rishab K rishab.k at vtiger.com
Thu Jul 24 09:49:55 GMT 2014


The above code should delete all the database entries related to the
module.However,source remains as it is,please check if you are getting any
errors by debugging.In my instance it works fine.


On Thu, Jul 24, 2014 at 3:09 PM, Mel <m.brummell at btinternet.com> wrote:

> Hi,
> Is there any way of deleting custom modules? Ideally there would be an
> uninstall button, but all we can do at the moment (it appears) is disable
> modules.
>
> I have also tried the code suggestions i.e. to create a php file with code
> along the lines of:
>
> include_once('vtlib/Vtiger/Module.php');
>
> /*
>  * Delete a module
>  */
> $module = Vtiger_Module::getInstance('MyCustomModule');
> if($module)
> {
>     // Delete from system
>     $module->delete();
>     echo "Module deleted!";
> } else {
>     echo "Module was not found and could not be deleted!";
> }
>
> But this and a slightly different piece of code didn't work for me.
>
> Am I overlooking something in Vtiger 6.1? Is there an obvious way of
> uninstalling custom modules?
>
> Mel
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20140724/98705c80/attachment.html>


More information about the vtigercrm-developers mailing list