Merge pull request #22529 from eileenmcnaughton/phpcs4
[civicrm-core.git] / ang / crmMailing.ang.php
CommitLineData
8456e727
TO
1<?php
2// This file declares an Angular module which can be autoloaded
8456e727 3// ODDITY: Only loads if you have CiviMail permissions.
8456e727 4
617697e8 5return [
8456e727 6 'ext' => 'civicrm',
617697e8 7 'js' => [
8456e727
TO
8 'ang/crmMailing.js',
9 'ang/crmMailing/*.js',
617697e8
CW
10 ],
11 'css' => ['ang/crmMailing.css'],
12 'partials' => ['ang/crmMailing'],
0022fd1b 13 'settingsFactory' => ['CRM_Mailing_Info', 'createAngularSettings'],
617697e8 14 'requires' => ['crmUtil', 'crmAttachment', 'crmAutosave', 'ngRoute', 'ui.utils', 'crmUi', 'dialogService', 'crmResource'],
66c46618
CW
15 'permissions' => [
16 'view all contacts',
17 'edit all contacts',
18 'access CiviMail',
19 'create mailings',
20 'schedule mailings',
21 'approve mailings',
22 'delete in CiviMail',
23 'edit message templates',
24 ],
617697e8 25];