You are here

function _cck_link_diff_values in Diff 6

Same name and namespace in other branches
  1. 5.2 cck.inc \_cck_link_diff_values()
  2. 5 cck.inc \_cck_link_diff_values()
1 call to _cck_link_diff_values()
content_diff in ./cck.inc
Implementation of hook_diff()

File

./cck.inc, line 99
hook_diff() implementations for CCK (especially fields).

Code

function _cck_link_diff_values(&$node, &$field) {
  $result = array();
  foreach ($node->{$field}['field_name'] as $item) {
    if ($item['url']) {
      $result[] = 'url: ' . $item['url'];
    }
    if ($item['title']) {
      $result[] = 'title: ' . $item['title'];
    }
  }
  return $result;
}