You are here

function _cck_text_diff_values in Content Construction Kit (CCK) 6

1 call to _cck_text_diff_values()
content_diff in includes/content.diff.inc
Implementation of hook_diff()

File

includes/content.diff.inc, line 69
hook_diff() implementations for CCK (especially fields).

Code

function _cck_text_diff_values(&$node, &$field) {
  $result = array();
  foreach ($node->{$field}['field_name'] as $item) {
    foreach (explode("\n", $item['value']) as $i) {
      $result[] = $i;
    }
  }
  return $result;
}