Jiří Techet wrote:
Interesting.
I wanted to avoid 8 callback functions for each menu entry by reading the label but apparently it wasn't a good idea. When thinking about it, the label can be localized and completely changed so I shouldn't rely on its value.
Instead of using your patch I think it's cleaner to really use the 8 callbacks which should fix all the problems. So please use the attached patch instead of the original one.
Applied here and working as expected. Thanks.
Erik