You are here

function answers_field_get_value in Answers 7.2

Same name and namespace in other branches
  1. 7.3 includes/answers.field_utils.inc \answers_field_get_value()

@file Field utility functions for the 'Answers' module

@author Chip Cleary

2 calls to answers_field_get_value()
answers_node_view in ./answers.module
answers_notify_new_answer in includes/answers.notify.inc

File

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

Code

function answers_field_get_value($node, $field) {
  $items = field_get_items('node', $node, $field);
  return $items[0]['value'];
}