Remove "No front page content has been created yet" from home page

Public

Source: https://www.drupal.org/node/1049290

Get raw version
php
  1. /**
  2.  * Implements hook_process_page().
  3.  */
  4. function mymodule_process_page(&$var) {
  5. $is_front = $var['is_front'];
  6. if($is_front) {
  7. $node = menu_get_object();
  8. if(!$node) {
  9. $var['title'] = '';
  10. unset($var['page']['content']['system_main']['default_message']);
  11. }
  12. }
  13. return;
  14. }