0

I have a rule with event Cron maintenance tasks are performed.

It is executed when a cron run.

I have implemented hook_cron in my custom module and I want this hook_cron should be run after that rule is executed.

But the problem is my hook_cron executed first and then that rule is executed.

Is there any way to run my hook_cron after that rule?

1 Answer 1

0

You can adjust the weight of your module so that it gets executed after Rules.

See this question for more details.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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