mvf.diff.inc in Measured Value Field 6
Integration of Measured Value Field with Diff module.
File
includes/mvf.diff.incView source
<?php
/**
* @file
* Integration of Measured Value Field with Diff module.
*/
/**
* Implementation of hook_content_diff_values()
*/
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;
}
Functions
Name![]() |
Description |
---|---|
mvf_content_diff_values | Implementation of hook_content_diff_values() |