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.
<?php
//Create the redirect page
function module_name_menu() {
$items['welcometest'] = array(
'title' => 'Redirecting',
'access callback' => TRUE,
'delivery callback' => '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 = "<html>
<head>
<link rel=\"stylesheet\" type=\"text/css\" href=\"".drupal_get_path('module', 'module_name')."/css/module_name.css\">
<link rel=\"shortcut icon\" href=\"".variable_get('file_'.file_default_scheme().'_path',conf_path().'/files')."/favicon.ico\" type=\"image/vnd.microsoft.icon\" />
</head>
<title>
Welcome to ".variable_get('site_name')."
</title>
<body>
<div class=\"welcomecontent\">
<div class=\"welcomemessage\">
<h2>Welcome</h2>
</div>
</div>
</body>
</html>";
return $html;
}