Automating hook_update_N in install profiles!
I had a crazy idea the other day: I hate trying to figure out what the update hooks should be for the distributions that I manage. So, instead of having to remember things or work hard, I’m trying to work smarter. Profiler Builder is a module I made to help automate the installation profile / distribution production process.
This video shows a sub-module now available in dev called Profiler Builder Extras which seeks to add crazier functionality to Profiler Builder. It’s currently seeking to add in two “crazy” capabilities:
- Automatic creation and export of features
- Automatic creation of an update hook after monitoring what queries were executed on the site
Right now support is there for the features_builder module but it’s not working yet. The query logging capabilities ARE working though and will write to the .install file. There’s lots of developer hooks / API functions to help clean up what exactly is logged and stored during query recording. Enjoy!