Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
I encountered a situation where I want to take some actions upon installing a module, and the actions depend on some default content of the same module. I don't think I can solve that in a straightforward way with the current strategy, where content is always imported after the module (and any dependencies) are installed.
Proposed resolution
Not sure.
Comments
Comment #2
larowlanDoes http://cgit.drupalcode.org/default_content/commit/?id=80fb60d allow you to do this - an import event and export event that can be subscribed to
Comment #3
matslats CreditAttribution: matslats as a volunteer commentedDo you know about hook_modules_installed($modules)
Which runs after hook_install()
Comment #4
andypost