You are here

function paranoia_menu_alter in Paranoia 7

Implements hook_menu_alter().

Disable specific menu paths.

File

./paranoia.module, line 44
Paranoia module file. Provides various extra security features.

Code

function paranoia_menu_alter(&$items) {
  $hidden_paths = module_invoke_all('paranoia_hide_paths');
  foreach ($hidden_paths as $path) {
    if (isset($items[$path])) {
      $items[$path]['access callback'] = FALSE;
    }
  }
}