EPSCoR / ERCore

ERcore content management system to assist with NSF EPSCoR reporting
4 stars 7 forks source link

Hook Install / Hook Uninstall #34

Open tschet opened 8 years ago

tschet commented 8 years ago

Any time a hook_install is used (inside er.install), a hook_uninstall should also be used to reverse the process. Anything added by the hook_install should be removed by the uninstall hook. Currently this module is a one-way process. It inserts content types, taxonomies, menu items and configuration. On uninstall, this is all left behind. Some of what's left behind is locked as well. The admin menu in particular is really messed up on uninstall. All of the EPSCoR menu items are left in the root of the Management menu with no easy way to remove them. If you choose to reinstall, a whole new set of menu items are added.