You are here

function party_default_attached_entity_form in Party 7

Same name and namespace in other branches
  1. 8.2 party.module \party_default_attached_entity_form()

The default data set form callback. This returns a $form array for the entity in $attached_entity

Parameters

$form: The form we're attaching to. This may be the whole form or a sub-section of the form with the #parents key set.

$form_state: The form state

$attached_entity: The attached entity this form is for

$party: The party the $attached entity is attached to

1 string reference to 'party_default_attached_entity_form'
party_get_data_set_info in ./party.module
Get all data sets from hook_party_data_set_info().

File

./party.module, line 1237
Provides a generic CRM party entity.

Code

function party_default_attached_entity_form(&$form, &$form_state, $data_set, $delta, $party) {
  field_attach_form($data_set
    ->getDataInfo('entity type'), $data_set
    ->getEntity($delta), $form, $form_state);
}