[REF] MessageTemplate form code level improvements
authoreileen <emcnaughton@wikimedia.org>
Wed, 15 Apr 2020 00:17:33 +0000 (12:17 +1200)
committereileen <emcnaughton@wikimedia.org>
Wed, 15 Apr 2020 00:20:17 +0000 (12:20 +1200)
commit33b33abc2bf28811d2b36ecc660bb3ddc0f491b0
treeb5419437fb814b23f779010d82e1cf9608ce6cd9
parent483f05ac1457079274b30e3f359a313aefea0235
[REF] MessageTemplate form code level improvements

I'm looking to cleanup this form to use the apiv4 (I'd rather got the extra step & switch it to an afform but
that seems like too big a leap).

This switches the loading to use apiv4. Note that
1) I decided that it doesn't make sense to setCheckPermissions = FALSE - I think the form should not
be availble to non-permissioned users (& perhaps a hook might like to play a role here).

2) I removed the inheritence from the parent  which seemed to do 3 things
 - added admin.css - none of the classes seemed to apply
 - added iconpicker - didn't seem to apply
 - loaded the defaults - which this change does on the form more succinctly
CRM/Admin/Form/MessageTemplates.php