fields(); $d->free(); $dao = _civicrm_api3_get_DAO('Unsubscribe'); $d = new $dao(); $fields = $fields + $d->fields(); $d->free(); // CRM-13830 - prevent the api wrapper from helping out with pseudoconstants // Since these fields don't belong to this entity it will fail foreach ($fields as &$field) { unset($field['pseudoconstant']); } return civicrm_api3_create_success($fields); }