function diff_inline_ajax in Diff 7.2
Same name and namespace in other branches
- 7.3 diff.module \diff_inline_ajax()
AHAH callback for rendering the inline diff of a node.
1 string reference to 'diff_inline_ajax'
- diff_inline_form in ./
diff.module - Form builder: Inline diff controls.
File
- ./
diff.module, line 349 - Provides functionality to show a diff between two node revisions.
Code
function diff_inline_ajax($form, $form_state) {
module_load_include('inc', 'diff', 'diff.pages');
$node = $form['node']['#value'];
$vid = isset($form_state['values']['revision']) ? $form_state['values']['revision'] : 0;
return "<div id='node-{$node->nid}'>" . diff_inline_show($node, $vid) . "</div>";
}