Update plugin for PyroCMS 2.2 plugin system

Added new function to follow the new plugin system of PyroCMS 2.2