Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Passing args node value to observer object #63
There is a reference to a config node 'args' in Mage_Core_Model_App dispatchEvent which can be used when declaring observers in config.xml. Unless mistaken, it currently appears to be unused.
It is not clear what the intended use of this node is, and although I suspect not the original intention, but one potential use could be in passing some arguments to an observer.
This is something I noticed a while back and has came up again recently in a question on stackoverflow: http://stackoverflow.com/questions/11898878/using-args-in-magento-observer-declaration
Please see attached commit, which passes the value of the args node along with observer object.
Alternatively, if the args node is not to be used then the reference to it in Mage_Core_Model_App dispatchEvent could be removed to prevent any future confusion.