de.propeace.mailinglistsync/managed/CustomGroup_Event_Mailing_List.mgd.php
2025-03-04 11:15:09 +01:00

128 lines
3.8 KiB
PHP

<?php
use CRM_Mailinglistsync_ExtensionUtil as E;
return [
[
'name' => 'CustomGroup_Event_Mailing_List',
'entity' => 'CustomGroup',
'cleanup' => 'unused',
'update' => 'unmodified',
'params' => [
'version' => 4,
'values' => [
'name' => 'Event_Mailing_List',
'title' => E::ts('Event Mailing List'),
'extends' => 'Event',
'style' => 'Inline',
'collapse_display' => TRUE,
'help_pre' => E::ts('These fields can be used to set up the events\'s behaviour as a mailing list.'),
'help_post' => E::ts(''),
'weight' => 4,
'collapse_adv_display' => TRUE,
'created_date' => '2025-02-10 12:56:55',
'icon' => '',
],
'match' => ['name'],
],
],
[
'name' => 'CustomGroup_Event_Mailing_List_CustomField_Enable_mailing_list',
'entity' => 'CustomField',
'cleanup' => 'unused',
'update' => 'unmodified',
'params' => [
'version' => 4,
'values' => [
'custom_group_id.name' => 'Event_Mailing_List',
'name' => 'Enable_mailing_list',
'label' => E::ts('Enable mailing list'),
'data_type' => 'Boolean',
'html_type' => 'Radio',
'default_value' => '0',
'is_searchable' => TRUE,
'help_post' => E::ts('Enable the creation of a mailing list for this event.'),
'text_length' => 255,
'note_columns' => 60,
'note_rows' => 4,
'column_name' => 'enable_mailing_list_30',
],
'match' => [
'name',
'custom_group_id',
],
],
],
[
'name' => 'CustomGroup_Event_Mailing_List_CustomField_E_mail_address',
'entity' => 'CustomField',
'cleanup' => 'unused',
'update' => 'unmodified',
'params' => [
'version' => 4,
'values' => [
'custom_group_id.name' => 'Event_Mailing_List',
'name' => 'E_mail_address',
'label' => E::ts('E-mail address'),
'html_type' => 'Text',
'help_post' => E::ts('The complete e-mail address of the mailing list.'),
'text_length' => 255,
'note_columns' => 60,
'note_rows' => 4,
'column_name' => 'e_mail_address_10',
],
'match' => [
'name',
'custom_group_id',
],
],
],
[
'name' => 'CustomGroup_Event_Mailing_List_CustomField_Subject_prefix',
'entity' => 'CustomField',
'cleanup' => 'unused',
'update' => 'unmodified',
'params' => [
'version' => 4,
'values' => [
'custom_group_id.name' => 'Event_Mailing_List',
'name' => 'Subject_prefix',
'label' => E::ts('Subject prefix'),
'html_type' => 'Text',
'help_post' => E::ts('The subject of every email sent to this mailing list is prefixed with this.'),
'text_length' => 255,
'note_columns' => 60,
'note_rows' => 4,
'column_name' => 'subject_prefix_11',
],
'match' => [
'name',
'custom_group_id',
],
],
],
[
'name' => 'CustomGroup_Event_Mailing_List_CustomField_Can_be_reached_externally',
'entity' => 'CustomField',
'cleanup' => 'unused',
'update' => 'unmodified',
'params' => [
'version' => 4,
'values' => [
'custom_group_id.name' => 'Event_Mailing_List',
'name' => 'Can_be_reached_externally',
'label' => E::ts('Can be reached externally'),
'data_type' => 'Boolean',
'html_type' => 'Radio',
'default_value' => '0',
'help_post' => E::ts('Should this mailing list also be open to senders who are not included in it?'),
'text_length' => 255,
'note_columns' => 60,
'note_rows' => 4,
'column_name' => 'can_be_reached_externally_12',
],
'match' => [
'name',
'custom_group_id',
],
],
],
];