An implementation of the plugin from http://docs.joomla.org/Adding_custom_fields_to_core_components_using_a_plugin