[#19] implementing membership postprocess call (WIP)

This commit is contained in:
B. Endres 2020-02-10 08:26:55 +01:00
parent 8a2f91f34a
commit 33ced7bbc3
5 changed files with 107 additions and 3 deletions

View file

@ -379,6 +379,13 @@ class CRM_Twingle_Form_Profile extends CRM_Core_Form {
FALSE, // is not required
array('class' => 'crm-select2 huge')
);
$this->add(
'text',
'membership_postprocess_call',
E::ts('API Call for Membership Postprocessing'),
FALSE
);
$this->addRule('membership_postprocess_call', E::ts("The API call must have the form 'Entity.Action'."), 'regex', '/^[A-Za-z_]+[.][A-Za-z_]+$/');
$this->add(
'text', // field type