function get_ref_fields in Default Content 7
Same name and namespace in other branches
- 7.2 plugins/node_reference.inc \get_ref_fields()
Helper function to get all node reference fields
3 calls to get_ref_fields()
- node_reference_export_alter in plugins/
node_reference.inc - Handles the change to the node need for exporting node references
- node_reference_import_alter in plugins/
node_reference.inc - Handles the importing of node_reference fields
- node_reference_import_sort in plugins/
node_reference.inc - Handles a sort to insure that ref nodes are import first
File
- plugins/
node_reference.inc, line 104
Code
function 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;
}