[eluser]theprodigy[/eluser]
Quote:That’s essentially what I want to do, but I need to know the plugin exists before it can be added to the database. Preferably, I’d like to be able to make adding modules in as simple as dropping the module into the directory and running an “Update modules” method. It sounds like the best way to do this would be the scandir method you outlined?
I would have your "Update Modules" method do the scandir, and compare the array returned to the folder_name column in the db.modules table, and insert any modules not found.
That sounds kinda like what you are looking for.
Maybe you can even setup a config/install.php file per module, with the data you want inserted into the db for that module (name, active, etc).