You are here

function _diff_body_rows in Diff 7.3

Same name and namespace in other branches
  1. 5.2 diff.module \_diff_body_rows()
  2. 6.2 diff.pages.inc \_diff_body_rows()
  3. 6 diff.module \_diff_body_rows()
  4. 7.2 diff.pages.inc \_diff_body_rows()

Creates an array of rows which represent the difference between nodes.

Parameters

object $old_node: Node for comparison which will be displayed on the left side.

object $new_node: Node for comparison which will be displayed on the right side.

bool $state: The state to render for the diff.

2 calls to _diff_body_rows()
diff_diffs_show in ./diff.pages.inc
Create a comparison for the node between versions 'old_vid' and 'new_vid'.
diff_node_form_build_preview_changes in ./diff.module
Submit handler for the 'View changes' action.

File

./diff.pages.inc, line 411
Menu callbacks for hook_menu().

Code

function _diff_body_rows($old_node, $new_node, $state = 'raw') {
  $context = array(
    'states' => array(
      $state,
    ),
    'view_mode' => 'diff_standard',
  );
  return diff_entity_body_rows('node', $old_node, $new_node, $context);
}