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>
Fri, 6 Jan 2017 00:24:16 +0000 (16:24 -0800)
commitaadc85822a6b56c75372d93bba465290ba03de7b
tree8529e248798d60c7329282bfe29bde7d6b5ba8a1
parent059a156f1a7b2f811168b8ebc35f6c51f810575c
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/Mailing/BAO/Mailing.php
CRM/Mailing/Info.php
CRM/Upgrade/Incremental/php/FourSix.php
CRM/Utils/Hook.php
tests/phpunit/api/v3/MailingTest.php
xml/schema/Mailing/Mailing.xml