Printing Region With Content in Custom HTML I am creating a custom first page that is blank and built up from scratch. However I want to print certain regions (e.g. the footer) on this page. How can I grab the region information/content and print it in the html in the welcomegeneratepage function.

&lt;?php

//Create the redirect page
function module_name_menu() {
    $items['welcometest'] = array(
        'title' =&gt; 'Redirecting',
        'access callback' =&gt; TRUE,
        'delivery callback' =&gt; 'welcome_blank_page'
    );
    return $items;
}

//Function generate the redirect page
function welcome_blank_page() {
    //Get the redirect URL
    //Generate the HTML for the page
    $html = welcomegeneratepage();
    print $html;
}

//Generates the page html
function welcomegeneratepage() {
    print $footer;
    $html = "&lt;html&gt;
                &lt;head&gt;
                    &lt;link rel=\"stylesheet\" type=\"text/css\" href=\"".drupal_get_path('module', 'module_name')."/css/module_name.css\"&gt;
                    &lt;link rel=\"shortcut icon\" href=\"".variable_get('file_'.file_default_scheme().'_path',conf_path().'/files')."/favicon.ico\" type=\"image/vnd.microsoft.icon\" /&gt;
                &lt;/head&gt;
                &lt;title&gt;
                        Welcome to ".variable_get('site_name')."
                &lt;/title&gt;
                &lt;body&gt;
                   &lt;div class=\"welcomecontent\"&gt;
                       &lt;div class=\"welcomemessage\"&gt;
                           &lt;h2&gt;Welcome&lt;/h2&gt;
                       &lt;/div&gt;
                   &lt;/div&gt;
                &lt;/body&gt;
             &lt;/html&gt;";
    return $html;
}
I haven't had any need for a blank page before, but couldn't you just create a new .tpl.php for the front?

Under site configuration, set a node as your front page, then create a copy of page.tpl.php and name it page--node--1.tpl.php (or whatever node ID you have) .

Delete all the divs and containers to make the page blank, and then render regions in php like normal.


  print render($page['your_region']);