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