You are here

function nodeconnect_field_attach_form in Node Connect 7

Implements hook_field_attache_form().

File

./nodeconnect.module, line 40
Handles the main hooks used by nodeconnect

Code

function nodeconnect_field_attach_form($entity_type, $entity, &$form, &$form_state, $langcode) {
  foreach (_nodeconnect_get_ref_fields() as $field_name => $field) {
    if (isset($form[$field_name])) {
      nodeconnect_include_form();
      _nodeconnect_field_attach_form($entity_type, $entity, $form, $form_state, $langcode, $field_name, $field);
    }
  }
}