You are here

function diff_menu_alter in Diff 6

Same name and namespace in other branches
  1. 6.2 diff.module \diff_menu_alter()
  2. 7.3 diff.module \diff_menu_alter()
  3. 7.2 diff.module \diff_menu_alter()

Implementation of hook_menu_alter().

File

./diff.module, line 44
Provides functionality to show a diff between two node revisions.

Code

function diff_menu_alter(&$callbacks) {

  // Overwrite the default 'Revisions' page
  $callbacks['node/%node/revisions']['page callback'] = 'diff_diffs_overview';
  $callbacks['node/%node/revisions']['module'] = 'diff';
  unset($callbacks['node/%node/revisions']['file']);
}