CRM-19690 - Declare Mailing.template_type, Mailing.template_options, Hook::mailingTem...
authorTim Otten <totten@civicrm.org>
Mon, 28 Nov 2016 22:09:20 +0000 (14:09 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 20 Dec 2016 01:54:17 +0000 (17:54 -0800)
commit703875d8a8fe2e2e5a43e08f776381bcbf3d98c2
treecf291c73cca24a4e2f7f64e425a20836ffd89d1d
parentbfee51f4247d1eeff5e60c1d47fdf26b07cdeab5
CRM-19690 - Declare Mailing.template_type, Mailing.template_options, Hook::mailingTemplateTypes.

This adds two new fields to the schema.

Template types can be declared (along with preferred editor) using
hook_civicrm_mailingTemplateTypes, e.g.

```
function mymod_civicrm_mailingTemplateTypes(&$types) {
  $types[] = array(
   'name' => 'moasico',
   'editorUrl' => '~/crmMosaico/EditMailingCtrl/mosaico.html',
  );
}
```

Note: This only stores data.  Other commits will make use of that data in
more meaningful ways.
CRM/Core/DAO/AllCoreTables.data.php
CRM/Mailing/BAO/Mailing.php
CRM/Mailing/DAO/Mailing.php
CRM/Mailing/Info.php
CRM/Upgrade/Incremental/php/FourSeven.php
CRM/Utils/Hook.php
tests/phpunit/api/v3/MailingTest.php
xml/schema/Mailing/Mailing.xml