Skip to content

Commit

Permalink
buildForm: add CRM_Contact_Form_RelatedContact
Browse files Browse the repository at this point in the history
  • Loading branch information
mlutfy committed Aug 8, 2023
1 parent c22602c commit c00444c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions noverwrite.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

require_once 'noverwrite.civix.php';

function noverwrite_civicrm_buildForm ( $formName, &$form ){
$names = array ("CRM_Profile_Form_Edit","CRM_Event_Form_Registration_Register","CRM_Contribute_Form_Contribution_Main");
function noverwrite_civicrm_buildForm($formName, &$form) {
$names = ['CRM_Profile_Form_Edit','CRM_Event_Form_Registration_Register','CRM_Contribute_Form_Contribution_Main','CRM_Contact_Form_RelatedContact'];

if (!in_array ($formName, $names))
if (!in_array($formName, $names)) {
return;
}

// Don't invoke if we're using CiviMobile, since CiviMobile depends on users being able
// to edit records via profiles.
Expand Down

0 comments on commit c00444c

Please sign in to comment.