Moved admincategory setting into event listener.
Merge pull request #1861 from cmfcmf/event-addition

Moved admincategory setting into event listener.