Lightweight empty front page solution
/**
* Implements hook_menu().
*
* Create custom front page menu route.
*/
function HOOK_menu() {
$items = array();
$items['home'] = array(
'page callback' => 'custom_front_page_callback',
'access arguments' => array('access content'),
'type' => MENU_CALLBACK,
);
return $items;
}
/**
* Empty front page callback.
*
* Returns empty array to create "Empty front page".
*
* @return array
* Empty array.
*/
function custom_front_page_callback() {
return array();
}
/**
* Implements hook_menu_alter().
*
* Alter front page menu callback.
*/
function HOOK_menu_alter(&$items) {
$items['node']['page callback'] = 'custom_empty_front_page_callback';
}
/**
* Empty front page callback.
*
* Returns empty array to create "Empty front page".
*
* @return array
* Empty array.
*/
function custom_empty_front_page_callback() {
return array();
}