I want to automate the removal of households from CiviCRM, right after it has been installed via Aegir on Drupal 7.

I implemented my post_provision_install hook, but it runs before the same hook of Hosting CiviCRM module, means before the install of the CiviCRM module.

How can I change the calling order of the post_provision_install hooks in this particular case?

Or how can be an post_hosting_install_task hook implemented and called?


You could perhaps do this with a CiviCRM extension rather than a Drupal module so you are sure it is only executed once CiviCRM is installed? Not sure if it is possible in your scenario.

  • Thx, will check it. I have Drupal profile, not a module, not sure if it make any difference.
    – Doka
    Feb 19 '20 at 13:51
  • 1
    The solution to automate the removal of households from CiviCRM was to implement the Drupal hook of hook_modules_installed in the .install file of my Drupal profile.
    – Doka
    Feb 21 '20 at 12:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.