[REF] transform the setting of defaults in CustomField::create to be like (some)...
authoreileen <emcnaughton@wikimedia.org>
Fri, 28 Jun 2019 22:42:25 +0000 (10:42 +1200)
committereileen <emcnaughton@wikimedia.org>
Sat, 29 Jun 2019 00:11:06 +0000 (12:11 +1200)
commit58c232cb97964a3885ff97bdd33219e1d5874c8e
tree35ff82473f8158eb308e0129afbfb0df58f1d0ae
parent0d165425f7b53d0a2d9b1980db3458532552babf
[REF] transform the setting of defaults in CustomField::create to be like (some) other entities

This patter (massaging the params & then copying) is more consistent. PR also moves creating the transaction to the start of the fn

I am cleaning up towards adding a bulk function that can be utilised by api v4 to create multiple fields with some efficiency on
sql statements (which matters when adding 2 or more fields to a large table)
CRM/Core/BAO/CustomField.php