You are here

function entityconnect_field_attach_form in Entity connect 7

Same name and namespace in other branches
  1. 7.2 entityconnect.module \entityconnect_field_attach_form()

Implements hook_field_attach_form().

File

./entityconnect.module, line 89
Handles the main hooks used by entityconnect.

Code

function entityconnect_field_attach_form($entity_type, $entity, &$form, &$form_state, $langcode) {
  entityconnect_include_form();
  foreach (_entityconnect_get_ref_fields() as $field_name => $field) {
    if (isset($form[$field_name])) {
      _entityconnect_field_attach_form($entity_type, $entity, $form, $form_state, $field_name, $field, $langcode);
    }
  }
}