I developing magento module which creates menu in admin panel. But when I disable it I would like not to show it. I saw this question : Possible to hide admin menu if custom module is disabled? I added the code to my module file (to see if this method is working) in my adminhtml.xml
<config> <menu> <depends> <config>payment/checkmo/active</config> </depends>
and then went to System->Configuration->Payment methods and disabled payment method Check/money order ?
What did I do wrong? What config path should be to check if my module is enabled ?
Thanks in advance.