You are here

function user_rev_diff_inline_ajax in User Revision 7.2

AJAX callback for rendering the inline diff of a user.

1 string reference to 'user_rev_diff_inline_ajax'
user_rev_diff_inline_form in diff/user_rev_diff.module
Form builder: Inline diff controls.

File

diff/user_rev_diff.module, line 289
Provides functionality to show a diff between two user revisions.

Code

function user_rev_diff_inline_ajax($form, $form_state) {
  module_load_include('inc', 'user_rev_diff', 'user_rev_diff.pages');
  $user = $form['user']['#value'];
  $old_vid = isset($form_state['values']['revision']) ? $form_state['values']['revision'] : 0;
  return "<div id='diff-inline-{$user->uid}'>" . user_rev_diff_inline_show($user, $old_vid) . "</div>";
}