I'm doing a module for infrastructure which is all about applying configuration updates, and it does only configuration, nothing else. <div><br></div><div>I'd like to create hook_update_N() functions, but I'd also like all of them to be run when the module is installed.</div>
<div><br></div><div>Is there any "correct" way to do this? Many modules implement the functionality in both hook_install and hook_update_N, and that's fine for database-only issues, which is what these were built around (like schema changes). But it doesnt' really make sense for site config changes.</div>
<div><br></div><div>Obviously, I can run the hook functions from hook_install(), in direct or indirect ways. </div><div><br></div><div>Suggestions?</div><div><br></div><div>Thanks,</div><div>-Randy</div><div><br>-- <br>Randy Fay<br>
Drupal Development, troubleshooting, and debugging<br><a href="mailto:randy@randyfay.com">randy@randyfay.com</a><br>+1 970.462.7450<br><br>
</div>