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

Vic Cekvenich vic.cvc at gmx.com
Sun Aug 17 22:02:56 GMT 2014



-------- Original Message --------
Subject: 	Re: [Vtigercrm-developers] Ability to remove custom modules - 
feature request maybe?
Date: 	Thu, 24 Jul 2014 15:19:55 +0530
From: 	Rishab K <rishab.k at vtiger.com>
Reply-To: 	vtigercrm-developers at lists.vtigercrm.com
To: 	vtigercrm-developers at lists.vtigercrm.com



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 
<mailto: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 --------------
_______________________________________________
http://www.vtiger.com/


More information about the vtigercrm-developers mailing list