class CRM_Contact_Form_Edit_Individual

Auxiliary class to provide support to the Contact Form class.

Does this by implementing a small set of static methods.

Methods

static 
buildQuickForm(CRM_Core_Form $form, int $inlineEditMode = NULL)

This function provides the HTML form elements that are specific to the Individual Contact Type.

static bool
formRule(array $fields, array $files, int $contactID = NULL)

Global form rule.

Details

at line 50
static buildQuickForm(CRM_Core_Form $form, int $inlineEditMode = NULL)

This function provides the HTML form elements that are specific to the Individual Contact Type.

Parameters

CRM_Core_Form $form Form object.
int $inlineEditMode ( 1 for contact summary. top bar form and 2 for display name edit )

at line 130
static bool formRule(array $fields, array $files, int $contactID = NULL)

Global form rule.

Parameters

array $fields The input form values.
array $files The uploaded files if any.
int $contactID

Return Value

bool TRUE if no errors, else array of errors.