function diff_menu in Diff 6
Same name and namespace in other branches
- 5.2 diff.module \diff_menu()
- 5 diff.module \diff_menu()
- 6.2 diff.module \diff_menu()
- 7.3 diff.module \diff_menu()
- 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;
}