PlgContentJoomla::onContentBeforeDelete

Don't allow categories to be deleted if they contain items or subcategories with items