You need to implement this, look in the category\event class for help on this,