function _cck_nodereference_diff_values in Diff 5.2
Same name and namespace in other branches
1 call to _cck_nodereference_diff_values()
- content_diff in ./
cck.inc - Implementation of hook_diff()
File
- ./
cck.inc, line 89 - hook_diff() implementations for CCK (especially fields).
Code
function _cck_nodereference_diff_values(&$node, &$field) {
$result = array();
foreach ($node->{$field}['field_name'] as $item) {
if ($item['nid']) {
$result[] = db_result(db_query('SELECT title FROM {node} WHERE nid=%d', $item['nid']));
}
}
return $result;
}