You are here

function mvf_content_diff_values in Measured Value Field 6

Implementation of hook_content_diff_values()

File

includes/mvf.diff.inc, line 11
Integration of Measured Value Field with Diff module.

Code

function mvf_content_diff_values($node, $field, $items) {
  $element = array(
    '#field_name' => $field['field_name'],
    '#type_name' => $node->type,
    '#formatter' => 'default',
  );
  $result = array();
  foreach ($items as $item) {
    $element['#item'] = $item;
    $result[] = theme('mvf_formatter_default', $element);
  }
  return $result;
}