I am attempting to perform form validation on various CiviCRM forms (profile forms and forms within contribution pages) by hooking into
In my php code, I would like to differentiate between the different forms so that I can execute appropriate validation functions. According to the CiviCRM documentation, this can be done by checking against the
While debugging, I found out that a contribution page I am using has a
CRM_Contribute_Form_Contribution_Main. For a profile form its
Is there a way of finding out how the names of form are defined? If so, does CiviCRM supporting assigning forms with custom form names?