You are here

9 August 2011

How to hide default /node page from viewers. It's useful to do this if you don't use the page. People might access to some unwanted places.

Source code viewer
  1. function hook_menu_alter(&$items) // replace hook with your module machine name
  2. {
  3. unset($items['node']);
  4. }
Programming Language: PHP