0

I need to create two custom modules in Drupal 7. The two custom modules will implement the same hook. How can I guarantee the order of execution for the two custom module? I mean module1 will run first then module2 OR the reverse order?

6
  • 1
    This has been answered already > drupal.stackexchange.com/questions/37674/…
    – Jason
    Aug 1, 2014 at 4:05
  • 2
    print something in both hooks.and run that code.check which one came first. Aug 1, 2014 at 4:05
  • 1
    That answer is for D6 I think - D7 has module_implements_alter().
    – Andy
    Aug 1, 2014 at 10:36
  • @Andy why don't you put this as an answer? Seems it indeed is a valid answer.
    – Mołot
    Aug 1, 2014 at 11:26
  • @Mołot I voted to close as duplicate instead (:
    – Andy
    Aug 1, 2014 at 11:28

0

Browse other questions tagged or ask your own question.