You are here

function diff_menu in Diff 6

Same name and namespace in other branches
  1. 5.2 diff.module \diff_menu()
  2. 5 diff.module \diff_menu()
  3. 6.2 diff.module \diff_menu()
  4. 7.3 diff.module \diff_menu()
  5. 7.2 diff.module \diff_menu()

Implementation of hook_menu() The menu path 'node/$nid/revisions' is overriden with 'diff_diffs'.

File

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

Code

function diff_menu() {
  $items = array();
  $items['node/%node/revisions/view/%/%'] = array(
    'title' => 'Diff',
    'page callback' => 'diff_diffs_show',
    'page arguments' => array(
      1,
      4,
      5,
    ),
    'type' => MENU_CALLBACK,
    'access callback' => '_node_revision_access',
    'access arguments' => array(
      1,
    ),
  );
  return $items;
}