I run into this odd situation where the observer doesn't get called if I wrapped it under adminhtml. For example the following observer is called when I saved a product.
<events>
<catalog_product_save_after>
<observers>
<testname_testmodule>
<class>testname_testmodule/observer</class>
<method>logUpdate</method>
<type>singleton</type>
</testname_testmodule>
</observers>
</catalog_product_save_after>
</events>
However, if I wrapped event within like below, then it doesn't work.
<adminhtml>
<events>
<catalog_product_save_after>
<observers>
<testname_testmodule>
<class>testname_testmodule/observer</class>
<method>logUpdate</method>
<type>singleton</type>
</testname_testmodule>
</observers>
</catalog_product_save_after>
</events>
</adminhtml>
Am I missing something here?
logUpdate
got called when the events is put outside <adminhtml>, though.