function minisite_deliver in Mini site 7
Deliver minisite.
1 string reference to 'minisite_deliver'
- minisite_page_delivery_callback_alter in includes/
minisite.theme.inc - Alter page delivery callback.
File
- includes/
minisite.theme.inc, line 53 - minisite.theme.inc
Code
function minisite_deliver($page_callback_result) {
// Allow Drupal to handle MENU_NOT_FOUND, MENU_ACCESS_DENIED and
// MENU_SITE_OFFLINE.
if (is_int($page_callback_result)) {
drupal_deliver_html_page($page_callback_result);
}
if (isset($page_callback_result) && is_null(drupal_get_http_header('Content-Type'))) {
drupal_add_http_header('Content-Type', 'text/html; charset=utf-8');
}
// Send appropriate HTTP-Header for browsers and search engines.
global $language;
drupal_add_http_header('Content-Language', $language->language);
$minisite_info = minisite_site_load();
$content = minisite_site_build($minisite_info);
print $content;
// Perform end-of-request tasks.
drupal_page_footer();
}