2

If you have 2 extensions each with an observer on newsletter_subscriber_save_after how does the system decide which extension runs first?

2

1 Answer 1

4

The observers are registered and therefore also executed in the order the corresponding extensions are loaded. You can read more about the load order in the blog post by Alan Storm. Just a short hint: You can force that your module A is loaded before another module B by placing a depends tag into your app/etc/modules/Namespace1_ModuleA.xml:

<depends>
    <Namespace2_ModuleB/>
</depends>

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