This seems like a stupid question to me but i can't find a good answer. What is the distinction between a 'not installed' module and a disabled module? When I run drush pml --status=disabled I do not get a very long list of modules as compared to drush pml --status='not installed'. All of them show up in modules as unchecked.

Thanks - Dave.

Comments

yelvington’s picture

Disabling a module leaves its configuration untouched, along with any data it may have created.

Uninstalling a module invokes hook_uninstall().

http://api.drupal.org/api/drupal/modules--system--system.api.php/functio...

yaworsk’s picture

When you enable a module, it runs the [modulename].install file -- the module is now installed and enabled. However, if you go into admin/build/modules and disable that module, it is only disabled but all the module's information still exists in the database so that if you re-enable it, you don't look anything (good for updates). The module, though disabled is considered installed.

If you uninstall the module, it will run the .install file again and call the uninstall function defined in there and the module will be considered 'not installed'.

pete

davedpss’s picture

Thank you. I thought that was probably the case but i could not find it explained that way. I appreciate the response and for not agreeing with me that it was a stupid question. Is there a way to mark this as resolved or answered?

Thanks - Dave.

yaworsk’s picture

np - i had the same question starting out.

and obviously in the post above, by look anything, i mean lose anything... no way to mark as answered. some people alter the post title but i dont think it's necessary.

pete