You are here

function revision_deletion_menu_alter in Revision Deletion 6

Same name and namespace in other branches
  1. 7 revision_deletion.module \revision_deletion_menu_alter()

Implementation of hook_menu_alter(). Intercepts the core node revisions list and replaces it with ours.

File

./revision_deletion.module, line 80
Node Revision Deletion, written by Greg Holsclaw

Code

function revision_deletion_menu_alter(&$items) {
  if (variable_get('revision_delete_list_takeover', 0)) {
    $items['node/%node/revisions']['page callback'] = 'revision_deletion_list';
    $items['node/%node/revisions']['file'] = 'revision_deletion.module';
    $items['node/%node/revisions']['access_callback'] = '_revision_deletion_access';
    $items['node/%node/revisions']['module'] = 'revision_deletion';
  }
}