user profile fields and convert_external_data

user profile fields and convert_external_data

by Martin H -
Number of replies: 0

Hi,

I was trying to get my head around developing a new profile field plugin and realised that the profile_field_menu class has a method named convert_external_data. I then realised that there are some places in code  (related to uploading users) that check if this method exists and then call it. So here is my 2 questions:

  1. Shouldn't the data coming from webservices also go through this convert_external_data method?
  2. Why there is no convert_external_data method in the base class (profile_field_base) so children classes can override it if needed. This way of checking for the existence of a method looks like a hacky solution. What do you think?

Thanks

Average of ratings: -