You are here

function _user_rev_diff_body_rows in User Revision 7.2

Same name in this branch
  1. 7.2 diff/user_rev_diff.api.php \_user_rev_diff_body_rows()
  2. 7.2 diff/user_rev_diff.pages.inc \_user_rev_diff_body_rows()

Creates an array of rows which represent a diff between $old_user and $new_user. The rows can be used via theme('diff_table') to be displayed.

Parameters

$old_user: User for comparison which will be displayed on the left side.

$new_user: User for comparison which will be displayed on the right side.

2 calls to _user_rev_diff_body_rows()
user_rev_diff_diffs_show in diff/user_rev_diff.pages.inc
Create output string for a comparison of 'user' between versions 'old_vid' and 'new_vid'.
user_rev_diff_user_form_build_preview_changes in diff/user_rev_diff.module
Callback if 'View changes' is pressed.

File

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

Code

function _user_rev_diff_body_rows($old_user, $new_user) {

  // make use of the user comparison functions in the diff module.
  module_load_include('inc', 'diff', 'diff.pages');
  $context = array(
    'states' => array(
      variable_get('diff_default_state_user', 'raw'),
    ),
    'view_mode' => 'diff_standard',
  );
  return diff_entity_body_rows('user', $old_user, $new_user, $context);
}