/**
  * wrapper for getOptions / pseudoconstant to get contact type options
  */
 function getContactTypeOptions()
 {
     if (method_exists('CRM_Contribute_PseudoConstant', 'contactType')) {
         return CRM_Contribute_PseudoConstant::contactType();
     } else {
         return CRM_Contact_BAO_Contact::buildOptions('contact_type');
     }
 }