add profile settings for note mapping
This commit is contained in:
parent
aee56769b7
commit
9836168122
4 changed files with 84 additions and 1 deletions
|
@ -498,6 +498,31 @@ class CRM_Twingle_Form_Profile extends CRM_Core_Form {
|
|||
[]
|
||||
);
|
||||
|
||||
$this->add(
|
||||
'select',
|
||||
'map_as_contribution_notes',
|
||||
E::ts('Create contribution notes for'),
|
||||
[
|
||||
'purpose' => E::ts('Purpose'),
|
||||
'remarks' => E::ts('Remarks'),
|
||||
],
|
||||
// is not required
|
||||
FALSE,
|
||||
['class' => 'crm-select2 huge', 'multiple' => 'multiple']
|
||||
);
|
||||
|
||||
$this->add(
|
||||
'select',
|
||||
'map_as_contact_notes',
|
||||
E::ts('Create contact notes for'),
|
||||
[
|
||||
'user_extrafield' => E::ts('User Extra Field'),
|
||||
],
|
||||
// is not required
|
||||
FALSE,
|
||||
['class' => 'crm-select2 huge', 'multiple' => 'multiple']
|
||||
);
|
||||
|
||||
$this->addButtons([
|
||||
[
|
||||
'type' => 'submit',
|
||||
|
|
|
@ -530,6 +530,8 @@ class CRM_Twingle_Profile {
|
|||
'membership_postprocess_call' => ['required' => FALSE],
|
||||
'newsletter_double_opt_in' => ['required' => FALSE],
|
||||
'required_address_components' => ['required' => FALSE],
|
||||
'map_as_contribution_notes' => ['required' => FALSE],
|
||||
'map_as_contact_notes' => ['required' => FALSE],
|
||||
],
|
||||
// Add payment methods.
|
||||
array_combine(
|
||||
|
@ -646,6 +648,8 @@ class CRM_Twingle_Profile {
|
|||
'city',
|
||||
'country',
|
||||
],
|
||||
'map_as_contribution_notes' => [],
|
||||
'map_as_contact_notes' => [],
|
||||
]
|
||||
// Add contribution status for all payment methods.
|
||||
// phpcs:ignore Drupal.Formatting.SpaceUnaryOperator.PlusMinus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue