You are here

function content_content_diff_values in Content Construction Kit (CCK) 6.2

Same name and namespace in other branches
  1. 6.3 includes/content.diff.inc \content_content_diff_values()

Default 'implementation' of hook_content_diff_values.

Note that diff.module takes care of running check_plain on the output.

1 string reference to 'content_content_diff_values'
content_diff in includes/content.diff.inc
Implementation of hook_diff()

File

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

Code

function content_content_diff_values($node, $field, $items) {
  $return = array();
  foreach ($items as $item) {
    foreach (explode("\n", $item['value']) as $i) {
      $return[] = $i;
    }
  }
  return $return;
}