You are here

function revision_scheduler_menu_alter in Revision scheduler 7

Implements hook_menu_alter().

File

./revision_scheduler.module, line 89

Code

function revision_scheduler_menu_alter(array &$items) {
  $paths = array(
    'node/%node/revisions',
    'node/%node/revisions/list',
  );
  foreach ($paths as $path) {
    if (isset($items[$path]['access callback'])) {
      $override = '_revision_scheduler_override_' . $items[$path]['access callback'];
      if (function_exists($override)) {
        $items[$path]['access callback'] = $override;
      }
    }
  }
}