Jump to content

Removing Module code


Recommended Posts

If we assume that all modules are implemented correctly and well-contained, then I think it is safe.
But if there the module not well self-contained, then some error may occur if you remove it.

Here is just one example, assume a module modified some core file and have a include or require statement to include a module file and some logic. if the "include" or "require" in embraced by following code, then it is safe.

if(Module:isInstalled('somemodulename'))
{
  include .......
  ....
} 



Otherwise, it is not. Even you uninstall the module, if you remove the module folder, error will occurs.

Link to comment
Share on other sites

×
×
  • Create New...