You are here

function answers_field_get_node_reference in Answers 7.2

Same name and namespace in other branches
  1. 7.3 includes/answers.field_utils.inc \answers_field_get_node_reference()
1 call to answers_field_get_node_reference()
_answers_notify_node_insert in includes/answers.notify.inc

File

includes/answers.field_utils.inc, line 18
Field utility functions for the 'Answers' module

Code

function answers_field_get_node_reference($source_node, $field) {
  $items = field_get_items('node', $source_node, $field);
  $target_nid = $items[0]['nid'];
  return node_load($target_nid);
}