function tbxCategoryCustomFieldAdd($phase) { tbxGenericCustomFieldAdd($phase, 'tbx_category', 'tbx_category_custom', 'tbx_category_custom_schema'); switch ($phase) { case Phase::POST_INSERT: // Add column to XML schema XML_Schema::AddColumn('tbx_category_custom', Request::Get('name'), Request::Get('label'), Request::Get('validator')); break; } }