Skip to content

hook_civicrm_preProcess

Summary

This hook can be used to modify the behavior of a form before the buildQuickForm call.

Notes

Be sure to only use supported functions to interact with the form - generally those with the @api tag

Definition

hook_civicrm_preProcess(string $formName, \CRM_Core_Form $form): void

Parameters

  • string $formName - the name of the form
  • object $form - reference to the form object

Returns

  • void - nothing should be returned