You are here

function _nodeconnect_get_ref_fields in Node Connect 7

_nodeconnect_get_ref_fields is a helper function to retieve all node_reference_fields

1 call to _nodeconnect_get_ref_fields()
nodeconnect_field_attach_form in ./nodeconnect.module
Implements hook_field_attache_form().

File

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

Code

function _nodeconnect_get_ref_fields() {
  $ref_fields = array();
  foreach (field_info_fields() as $id => $field) {
    if ($field['type'] == 'node_reference') {
      $ref_fields[$id] = $field;
    }
  }
  return $ref_fields;
}