function diff_inline_ahah in Diff 6.2
AHAH callback for rendering the inline diff of a node.
1 string reference to 'diff_inline_ahah'
- diff_menu in ./
diff.module - Implementation of hook_menu().
File
- ./
diff.pages.inc, line 447 - Menu callbacks for hook_menu().
Code
function diff_inline_ahah($node) {
$form_state = array(
'values' => $_POST,
);
if ($form = form_get_cache($form_state['values']['form_build_id'], $form_state)) {
if (!empty($form_state['values']['revision']) && is_numeric($form_state['values']['revision'])) {
$vid = $form_state['values']['revision'];
}
else {
$vid = 0;
}
drupal_json(array(
'status' => TRUE,
'data' => diff_inline_show($node, $vid),
));
exit;
}
drupal_json(array(
'status' => FALSE,
'data' => '',
));
exit;
}