=== modified file 'diff/diff.module' --- diff/diff.module 2009-01-27 19:51:46 +0000 +++ diff/diff.module 2009-01-27 19:53:49 +0000 @@ -338,8 +338,10 @@ * Node for comparison which will be displayed on the left side. * @param $new_node * Node for comparison which will be displayed on the right side. + * @param $args + * Arguments passed by other modules, which will assist determining context. */ -function _diff_body_rows(&$old_node, &$new_node) { +function _diff_body_rows(&$old_node, &$new_node, $args = array()) { drupal_add_css(drupal_get_path('module', 'diff') .'/diff.css', 'module', 'all', FALSE); include_once('DiffEngine.php'); include_once('node.inc'); @@ -353,6 +355,7 @@ $rows = array(); $any_visible_change = FALSE; $node_diffs = module_invoke_all('diff', $old_node, $new_node); + drupal_alter('diff', $node_diffs, $args); // We start off assuming all form elements are in the correct order. $node_diffs['#sorted'] = TRUE;